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

Function main

test/stack_overflow.cpp:33–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31}
32
33int main() {
34 // Make C side consume a large portion of the stack, before bumping the rest with C++<->JS interop.
35 char staticBuffer[512288] = {};
36 InteropString(staticBuffer);
37 int stringLength = strlen(staticBuffer);
38 printf("Got string: %s\n", staticBuffer);
39 printf("Received a string of length %d.\n", stringLength);
40 return 0;
41}

Callers

nothing calls this directly

Calls 3

InteropStringFunction · 0.85
strlenFunction · 0.85
printfFunction · 0.85

Tested by

no test coverage detected