> Won't you need people to define C structures in JS for this to work?

Yes, you have to copy the struct definitions from headers file to a custom
js file.  I find it easy myself but others may have problems with this.  In
the future if anyone finds this useful a real parser could be added that
would just read the .h file.

> Sounds like it will need to handle alignment issues too, unless the user
is responsible?

It just has to match whatever emscripten generates and the user shouldn't
have to worry about it.  I may be wrong.

>  We have code for that in Runtime which can help.

Can you elaborate?  I would happily abandon this if there was already a
solution.

-- 
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/groups/opt_out.

Reply via email to