44 * University of Illinois/NCSA Open Source License. Both these licenses can be
55 * found in the LICENSE file.
66 *
7- * Define REPORT_RESULT and REPORT_RESULT_SYNC for using in test code
7+ * Define REPORT_RESULT for using in test code
88 */
99
1010#ifndef REPORT_RESULT_H_
1616extern "C" {
1717#endif
1818
19- void _ReportResult (int result , int sync );
20- void _MaybeReportResult (int result , int sync );
19+ void _ReportResult (int result );
20+ void _MaybeReportResult (int result );
2121
2222#ifdef __cplusplus
2323}
@@ -26,15 +26,11 @@ void _MaybeReportResult(int result, int sync);
2626#if defined __EMSCRIPTEN__ && defined __EMSCRIPTEN_PTHREADS__ && !defined(__EMSCRIPTEN_WASM_WORKERS__ )
2727 #include <emscripten.h>
2828 #include <emscripten/threading.h>
29- #define REPORT_RESULT (result ) emscripten_async_run_in_main_runtime_thread(EM_FUNC_SIG_VII, _ReportResult, (result), 0)
30- #define REPORT_RESULT_SYNC (result ) emscripten_sync_run_in_main_runtime_thread(EM_FUNC_SIG_VII, _ReportResult, (result), 1)
31- #define MAYBE_REPORT_RESULT (result ) emscripten_async_run_in_main_runtime_thread(EM_FUNC_SIG_VII, _MaybeReportResult, (result), 0)
32- #define MAYBE_REPORT_RESULT_SYNC (result ) emscripten_sync_run_in_main_runtime_thread(EM_FUNC_SIG_VII, _MaybeReportResult, (result), 1)
29+ #define REPORT_RESULT (result ) emscripten_async_run_in_main_runtime_thread(EM_FUNC_SIG_VI, _ReportResult, (result))
30+ #define MAYBE_REPORT_RESULT (result ) emscripten_async_run_in_main_runtime_thread(EM_FUNC_SIG_VI, _MaybeReportResult, (result))
3331#else
34- #define REPORT_RESULT (result ) _ReportResult((result), 0)
35- #define REPORT_RESULT_SYNC (result ) _ReportResult((result), 1)
36- #define MAYBE_REPORT_RESULT (result ) _MaybeReportResult((result), 0)
37- #define MAYBE_REPORT_RESULT_SYNC (result ) _MaybeReportResult((result), 1)
32+ #define REPORT_RESULT (result ) _ReportResult((result))
33+ #define MAYBE_REPORT_RESULT (result ) _MaybeReportResult((result))
3834#endif
3935
4036#endif
0 commit comments