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

Function g

test/test_fibers.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77[[noreturn]]
78static void g(void *arg) {
79 int *p = (int*)arg;
80 for(int i = 0; i < 10; ++i) {
81 *p = 100+i;
82 G.fibers[1].swap(&G.main);
83 }
84
85 G.fibers[1].result = 1;
86 G.fibers[1].swap(&G.main);
87 abort();
88}
89
90int main(int argc, char **argv) {
91 int i;

Callers

nothing calls this directly

Calls 2

abortFunction · 0.50
swapMethod · 0.45

Tested by

no test coverage detected