wasm_lua
wasm_lua copied to clipboard
Explicitly export `ccall`
According to the https://kripken.github.io/emscripten-site/docs/porting/connecting_cpp_and_javascript/Interacting-with-code.html, you should explicitly export ccall and cwrap to prevent them from being culled.
This fixes the TypeError: Module.ccall is not a function error message in the rawgit example.