MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / addAtPreMain

Function addAtPreMain

src/parseTools.mjs:832–834  ·  view source on GitHub ↗
(code)

Source from the content-addressed store, hash-verified

830// runtime `onMains` callbacks.
831export const ATMAINS = [];
832function addAtPreMain(code) {
833 ATMAINS.push(code);
834}
835
836// Add code to run after main has executed and the runtime is shutdown. This is
837// only available when the Wasm module has a main function and -sEXIT_RUNTIME is

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected