MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / dumpExceptionStack

Method dumpExceptionStack

src/hx/Debug.cpp:406–421  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404
405
406void StackContext::dumpExceptionStack()
407{
408 #ifdef ANDROID
409 #define EXCEPTION_PRINT(...) \
410 __android_log_print(ANDROID_LOG_ERROR, "HXCPP", __VA_ARGS__)
411 #else
412 #define EXCEPTION_PRINT(...) \
413 printf(__VA_ARGS__)
414 #endif
415
416 int size = mExceptionStack.size();
417 for(int i = size - 1; i >= 0; i--)
418 {
419 EXCEPTION_PRINT("Called from %s\n", mExceptionStack[i].toDisplay().utf8_str());
420 }
421}
422
423
424// ---- StackFrame -------

Callers 2

CriticalErrorHandlerFunction · 0.80
__hx_dump_stackFunction · 0.80

Calls 3

utf8_strMethod · 0.80
toDisplayMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected