aboutsummaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-07-13 10:58:05 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-07-13 10:58:05 -0700
commit7f34950cc7814da0fc3a14dff5dead6d9fc41eab (patch)
tree3def63c73fb899f7b62c63d27015bfa8c9c49e3d /system
parent1b15a1c44bc4631dc293834bd8f17f61155c3d03 (diff)
emscripten_push_main_loop_blocker improvements
Diffstat (limited to 'system')
-rw-r--r--system/include/emscripten/emscripten.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/system/include/emscripten/emscripten.h b/system/include/emscripten/emscripten.h
index 575c3e2a..9bc6c410 100644
--- a/system/include/emscripten/emscripten.h
+++ b/system/include/emscripten/emscripten.h
@@ -52,7 +52,13 @@ extern void emscripten_cancel_main_loop();
* Add a function to a queue of events that will execute
* before the main loop will continue.
*/
+#if EMSCRIPTEN
extern void emscripten_push_main_loop_blocker(void (*func)());
+#else
+inline void emscripten_push_main_loop_blocker(void (*func)()) {
+ func();
+}
+#endif
/*
* Call a C function asynchronously, that is, after returning