Replies: 1 comment 4 replies
-
The ccall function expects a string as its first argument, not a function. So you would do Also, if you do |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Here's my HTML:
Here's the relevant C++ lines:
Here's my em++ command line:
em++ /mnt/d/visual\ studio\ projects/scribbles3/em.cpp -s WASM=1 -s -o em.js -sALLOW_MEMORY_GROWTH -Oz -sEXPORTED_FUNCTIONS=_getpixels,_mainloop,_main -sEXPORTED_RUNTIME_METHODS=ccall,cwrap -s ASSERTIONS=2
Here's my console output:
As you can see, '_getpixels' is actaully listed in the module's contents, and it also shouldn't run before it's initialized, despite what it says, because it runs under `onRuntimeInitialized'.
Beta Was this translation helpful? Give feedback.
All reactions