9 #include "WinStackWalker.h" 10 #elif !defined(ANDROID) // The Android NDK has no execinfo header 24 class PrintingStackWalker:
27 virtual void OnOutput(LPCSTR szText)
override 33 #elif !defined(ANDROID) 37 void * stackTrace[30];
38 auto numItems = backtrace(stackTrace,
ARRAYCOUNT(stackTrace));
39 backtrace_symbols_fd(stackTrace, numItems, STDERR_FILENO);
void PrintStackTrace(void)
Prints the stacktrace for the current thread.
#define ARRAYCOUNT(X)
Evaluates to the number of elements in an array (compile-time!)