Hi,
I'd like to pass a reference to a javascript object into an EM_ASM_ block,
i.e :
{
val jsObj = ... whatever ...;
EM_ASM_ ({
var obj = $0;
...
}, jsObj);
}
But the compiler won't let me do this... it seems only trivial values (ints
and doubles and strings) are allowed to go in and out of the js block.
What are my options here? The js object in question can actually be created
inside the block but I do need to hold a long-lived reference to it from
the C++ world. It'd be helpful if there was an EM_ASM_OBJ macro so I could
simply return it to the C++ side...
Many thanks,
Reuben
--
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.