I don't see a pretty API, but books like there is a global variable, EXITSTATUS, which is written to with the exit code. And you can add a hook to be called during the exit process by pushing a function on __ATEXIT__.
- Alon On Thu, Feb 12, 2015 at 1:25 PM, Marc Nieper-Wißkirchen < [email protected]> wrote: > Hi! > > Is there a way to specify a callback function on the module object that is > provided with the exit code of the Emscripten compiled C program once it > has finished? > > I wasn't able to find a hook in the documentation. > > Best, > > Marc > > -- > 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.
