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

Function get_stack

test/core/test_ccall.cpp:40–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38};
39static intptr_t* stackChecker = 0;
40__attribute__((noinline))
41intptr_t get_stack() { int i; return (intptr_t)&i; }
42int uses_stack(test_struct* t1) {
43 if (stackChecker == 0) stackChecker = (intptr_t*)malloc(sizeof(intptr_t));
44 *stackChecker = get_stack();

Callers 1

uses_stackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected