Replies: 2 comments 7 replies
-
Passing classes by value is tricky. The JS library API is very low-level, so you'd need to find out how the C++ ABI for such classes ends up implemented in wasm imports. That might not be easy and is not recommended. Instead, using embind at a high level is probably best. JS library methods are good when your types are simple:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
What about std::string? Can I use 'p' sign for it? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a js library. I use mergeInto() in it. I have to describe function signature for emscripten compiler but I don't know the rules for user-defined types.
void foo(myClass1 m1, myClass2 m2, emscripten::EM_VAL);
foo__sig: 'v???'
Beta Was this translation helpful? Give feedback.
All reactions