| 11 | #include <emscripten/html5.h> |
| 12 | |
| 13 | void 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 | |
| 24 | const char *emscripten_result_to_string(EMSCRIPTEN_RESULT result) { |
| 25 | if (result == EMSCRIPTEN_RESULT_SUCCESS) return "EMSCRIPTEN_RESULT_SUCCESS"; |
no test coverage detected