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

Function main

test/webidl/test.cpp:25–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24#ifdef BROWSER
25int main() {
26 printf("main().\n");
27 EM_ASM({
28 // simple test that everything is functional
29 var sme = new Module.Parent(42);
30 sme.mulVal(2);
31 var got = sme.getVal();
32 assert(got === 84, "got: " + got);
33 });
34 REPORT_RESULT(1);
35}
36#endif
37

Callers

nothing calls this directly

Calls 6

printfFunction · 0.85
ParentMethod · 0.80
mulValMethod · 0.80
EM_ASMFunction · 0.50
assertFunction · 0.50
getValMethod · 0.45

Tested by

no test coverage detected