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

Function main

test/test_fibers.cpp:90–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90int main(int argc, char **argv) {
91 int i;
92 G.fibers[0].init_with_api(f, &i);
93 G.fibers[1].init_manually(g, &i);
94
95 printf("*");
96 while(emscripten_fiber_swap(&G.main, &G.fibers[0].context), !G.fibers[0].result) {
97 printf("%d-", i);
98 emscripten_fiber_swap(&G.main, &G.fibers[1].context);
99 printf("%d-", i);
100 }
101 printf("*\n");
102
103 return 0;
104}

Callers

nothing calls this directly

Calls 3

printfFunction · 0.85
init_with_apiMethod · 0.80
init_manuallyMethod · 0.80

Tested by

no test coverage detected