Another option is to build with -s INVOKE_RUN=0 so that we don't run the project automatically. Then just call _main() yourself (if you want to pass arguments, can use ccall).
- Alon On Wed, Apr 22, 2015 at 8:13 AM, Danilo Guanabara <[email protected]> wrote: > Is there any way to run the code exactly when I want it to run and not > just when the runtime was loaded? > > -- > You received this message because you are subscribed to the Google Groups > "emscripten-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
