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

Function main

test/core/test_longjmp_throw.cpp:23–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23int main() {
24 int jmpval = setjmp(buf);
25 if (!jmpval) {
26 x++;
27 first();
28 printf("skipped\n");
29 } else if (jmpval == 1) {
30 printf("result: %d %d\n", x, jmpval);
31 x++;
32 try {
33 second();
34 } catch(int a) {
35 x--;
36 second();
37 }
38 } else if (jmpval == -1) {
39 printf("result: %d %d\n", x, jmpval);
40 }
41
42 return 0;
43}

Callers

nothing calls this directly

Calls 3

printfFunction · 0.85
firstFunction · 0.70
secondFunction · 0.70

Tested by

no test coverage detected