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

Method Aborter

test/core/test_demangle_stacks.cpp:16–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14class Class {
15 public:
16 __attribute__((noinline))
17 void Aborter(double x, char y, int *z) {
18 volatile int w = 1;
19 if (w) {
20 if (EM_ASM_INT({
21 out(jsStackTrace());
22 }) == 999999) {
23 // Add a fake call (that never happens in practice) to avoid the
24 // binaryen optimizer from inlining this method.
25 Aborter(x, y, z);
26 }
27 abort();
28 }
29 }
30};
31}
32

Callers 1

mainFunction · 0.45

Calls 2

outFunction · 0.50
abortFunction · 0.50

Tested by

no test coverage detected