Thanks a lot. Shall I file an issue at github for a more pretty API?

While Module['preRun'] is a documented property, __ATEXIT__ sounds like an 
internal that might go away with the next version.

What about a property Module['atExit'], which is either undefined (or null) 
or a callback function taking an exit code?

Am Freitag, 13. Februar 2015 02:23:51 UTC+1 schrieb Alon Zakai:
>
> 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] <javascript:>> 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] <javascript:>.
>> 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.

Reply via email to