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

Function main

test/benchmark/benchmark_ffis.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100int main()
101{
102 // Insist dynamic initialization that the compiler can't possibly optimize away.
103 pointerToFunction = (tick() == 0 && tick() == 1000000) ? 0 : &foreignFunctionThatTakesThreeParameters;
104
105#if defined(__EMSCRIPTEN__) && !defined(BUILD_FOR_SHELL)
106 emscripten_set_main_loop(main_loop, 0, 0);
107#else
108 for(int i = 0; i < totalRuns; ++i)
109 main_loop();
110#endif
111}

Callers

nothing calls this directly

Calls 2

tickFunction · 0.70
main_loopFunction · 0.70

Tested by

no test coverage detected