MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / report_result

Function report_result

test/browser/test_html5_pointerlockerror.c:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11#include <emscripten/html5.h>
12
13void report_result(int result) {
14 if (result == 0) {
15 printf("Test successful!\n");
16 } else {
17 printf("Test failed!\n");
18 }
19#ifdef REPORT_RESULT
20 REPORT_RESULT(result);
21#endif
22}
23
24const char *emscripten_result_to_string(EMSCRIPTEN_RESULT result) {
25 if (result == EMSCRIPTEN_RESULT_SUCCESS) return "EMSCRIPTEN_RESULT_SUCCESS";

Callers 3

click_callbackFunction · 0.70

Calls 1

printfFunction · 0.85

Tested by

no test coverage detected