Not sure if this is the best way, but you could call EM_ASM and set the javascript variables in there.
On Thursday, April 18, 2019 at 2:05:02 PM UTC-6, ssssss1 wrote: > > > Hello, > > I want to ask you if there a methode to export variables from C to > javascript because i have a code in C where 2 variables changes . > In javascript code i used cwrap to call function from C but > in C code my function can't return 2 variables in the same time > > Thank you in advance. > -- 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.
