onRuntimeInitialized is called right before main() would be. That means the
runtime is all ready for code to run in main() or otherwise.

postRun is called after main() would be.

I'm not sure how that interacts with embind code. It might help to build a
small program and look in the generated code.

On Wed, Jul 13, 2016 at 2:48 AM, Alexandre Perrot <
[email protected]> wrote:

> Hi,
>
> I have been using postRun to wait for the embind bindings to be
> initialized before calling code that uses them.
> I recently discovered the onRuntimeInitialized alternative.
> However, when onRuntimeInitialized is called, the bindings are not yet
> defined.
>
> Is this expected ?
> What is the difference between the two and which one should I use to run
> code that uses embind bindings ?
>
> --
> 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.

Reply via email to