aboutsummaryrefslogtreecommitdiff
path: root/tests/sdl_quit.c
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-10-13 10:06:33 -0700
committerAlon Zakai <alonzakai@gmail.com>2012-10-13 10:06:33 -0700
commit45ba35aa01f1650ed28479976262236bbf204ef1 (patch)
treea45ef1240a00776b9fd0b0b9b1a89b877848b474 /tests/sdl_quit.c
parent3a156a34e83fa301b8abbac6effdb5bd21d9be11 (diff)
add parameter to emscripten_set_main_loop to optionally simulate an infinite loop by throwing an exception (like glutMainLoop)
Diffstat (limited to 'tests/sdl_quit.c')
-rw-r--r--tests/sdl_quit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sdl_quit.c b/tests/sdl_quit.c
index 1a07526f..3d98c15c 100644
--- a/tests/sdl_quit.c
+++ b/tests/sdl_quit.c
@@ -26,7 +26,7 @@ int main() {
SDL_Init(SDL_INIT_VIDEO);
SDL_Surface *screen = SDL_SetVideoMode(600, 450, 32, SDL_HWSURFACE);
- emscripten_set_main_loop(one, 0);
+ emscripten_set_main_loop(one, 0, 0);
emscripten_run_script("setTimeout(function() { window.close() }, 2000)");
}