logo

Structs

Constants

The current version of this crate

Functions

Call the main function in emscripten, assumes that the emscripten state is set up.

Looks for variations of the main function (usually ["_main", "main"]), then returns a reference to the name of the first found function. Useful for determining whether a module is executable.

Reads values written by -s EMIT_EMSCRIPTEN_METADATA=1 Assumes values start from the end in this order: Last export: Dynamic Base Second-to-Last export: Dynamic top pointer

We check if a provided module is an Emscripten generated one

Top level function to execute emscripten

Call the global constructors for C++ and set up the emscripten environment.