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

Function main

test/core/test_longjmp_funcptr.c:26–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26int main(int argc, char **argv) {
27 fp = argc == 200 ? NULL : second;
28
29 volatile int x = 0;
30 if (!setjmp(buf)) {
31 x++;
32 first(); // when executed, setjmp returns 0
33 } else { // when longjmp jumps back, setjmp returns 1
34 printf("main: %d\n", x); // prints
35 }
36
37 return 0;
38}

Callers

nothing calls this directly

Calls 2

printfFunction · 0.85
firstFunction · 0.70

Tested by

no test coverage detected