Calling functions from a Module 

Emscripten provides two functions for calling compiled C/C++ functions from JavaScript: ccall() and cwrap(). Both of these functions are present in the Module object. Deciding which one to use is contingent on whether the function will be called more than once. The content in the following sections was taken from Emscripten's API reference documentation for preamble.js, which can be viewed at http://kripken.github.io/emscripten-site/docs/api_reference/preamble.js.html.

You don't need to prefix function calls with _ when using ccall() or cwrap() – just use the name specified in the C/C++ file.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset