当前位置: 首页 > 工具软件 > Emscripten > 使用案例 >

Module object(emscripten)

孟茂学
2023-12-01

Module object

Module is a global JavaScript object with attributes that Emscripten-generated code calls at various points in its execution.

Developers can provide an implementation of Module to control the execution of code. For example, to define how notification messages from Emscripten are displayed, developers implement the Module.print attribute.

When an Emscripten application starts up it looks at the values on the Module object and applies them. Note that changing the values after startup will not work in general; in a build with ASSERTIONS enabled you will get an error in that case.

Note

Module is also used to provide access to Emscripten API functions (for example ccall(

 类似资料:

相关阅读

相关文章

相关问答