diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-07-21 10:30:15 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-07-21 10:30:15 -0700 |
commit | 266923db9dbee14b768e98618073c346c84f0f97 (patch) | |
tree | d8b2ed7719f26cb6cd96c7e1c26d05f9f8dbd391 /system/include | |
parent | 411787e67d4017f9bfcd60cc3992f7f21ad15ea8 (diff) |
improve emscripten_push_main_loop_blocker definition
Diffstat (limited to 'system/include')
-rw-r--r-- | system/include/emscripten/emscripten.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h index 8e187ce3..6850d2eb 100644 --- a/system/include/emscripten/emscripten.h +++ b/system/include/emscripten/emscripten.h @@ -57,14 +57,14 @@ extern void emscripten_cancel_main_loop(); * used.) */ #if EMSCRIPTEN -extern void _emscripten_push_main_loop_blocker(void (*func)(), char *name); -#define emscripten_push_main_loop_blocker(func) \ - _emscripten_push_main_loop_blocker(func, #func); +extern void _emscripten_push_main_loop_blocker(void (*func)(), const char *name); #else -inline void emscripten_push_main_loop_blocker(void (*func)()) { +inline void _emscripten_push_main_loop_blocker(void (*func)(), const char *name) { func(); } #endif +#define emscripten_push_main_loop_blocker(func) \ + _emscripten_push_main_loop_blocker(func, #func) /* * Sets the number of blockers remaining until some user-relevant |