From 405b8559b3dac10161bad8de7d446efd651fbfaf Mon Sep 17 00:00:00 2001 From: Branimir Karadzic Date: Mon, 22 Oct 2012 20:23:04 -0700 Subject: [PATCH] Added 16K stack for emscripten loop fiber. --- examples/common/entry_emscripten.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/common/entry_emscripten.cpp b/examples/common/entry_emscripten.cpp index a6ff26f69..f1cc225d7 100644 --- a/examples/common/entry_emscripten.cpp +++ b/examples/common/entry_emscripten.cpp @@ -8,13 +8,13 @@ #if BX_PLATFORM_EMSCRIPTEN #include -#include +#include +#include extern int _main_(int _argc, char** _argv); -#include -jmp_buf s_main; -jmp_buf s_loop; +static jmp_buf s_main; +static jmp_buf s_loop; void emscripten_yield() { @@ -36,6 +36,7 @@ int main(int _argc, char** _argv) { if (!setjmp(s_loop) ) { + alloca(16<<10); _main_(_argc, _argv); }