Replies: 1 comment
-
|
The names which embind exports are fixed at compile time and embedded in the static constructors of the wasm module. You could imagine compiling your code twice, once for direct use and once for indirect usage. For example when you compile I think you would need to compile twice anyway since there is no easy way to embed one fully linked wasm into another (i,.e. you probably want to use the static library method). Within your code you could then have the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project that I want to be it's own standalone WASM module, but I'd also like to include it in bigger projects by compiling it in. However, it would get really messy if all of that was accessed via the same exported interface.
Beta Was this translation helpful? Give feedback.
All reactions