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

Function act

test/core/stack_overflow.c:14–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12void recurse(unsigned long x);
13
14void act(volatile unsigned long *a) {
15 printf("act %ld\n", *a);
16 unsigned long b = (long)(intptr_t)(alloca(*a));
17 if (b < *a) *a--;
18 recurse(*a);
19}
20
21void recurse(volatile unsigned long x) {
22 printf("recurse %ld sp=%#lx\n", x, emscripten_stack_get_current());

Callers 1

recurseFunction · 0.85

Calls 2

printfFunction · 0.85
recurseFunction · 0.85

Tested by

no test coverage detected