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

Method InitFunc

system/include/emscripten/bind.h:282–287  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280// to avoid static constructor ordering issues.
281struct InitFunc {
282 InitFunc(void (*init_func)()) : init_func(init_func) {
283 // This calls the function immediately upon construction, and also registers
284 // it so that it can be called again on each worker that starts.
285 init_func();
286 _embind_register_bindings(this);
287 }
288 void (*init_func)();
289 InitFunc* next = nullptr;
290};

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected