[ion] Fix the emscripten build

Change-Id: Ia54c5de4191c47d9840854d9aad12f87a9110da3
This commit is contained in:
Romain Goyet
2017-05-15 22:04:37 +02:00
parent 739c362ff0
commit a1552b2fa1
15 changed files with 226 additions and 135 deletions

View File

@@ -19,7 +19,7 @@ Timer * RunLoop::timerAtIndex(int i) {
void RunLoop::run() {
#ifdef __EMSCRIPTEN__
emscripten_set_main_loop_arg([](void * ctx){ ((Container *)ctx)->step(); }, this, 0, 1);
emscripten_set_main_loop_arg([](void * ctx){ ((RunLoop *)ctx)->step(); }, this, 0, 1);
#else
while(step()) {
}