It is a single header library to provide a cross platform backtrace utility.
Supported Platforms: Linux/Mac/Windows
Credit:
The Windows backtrace code is entirely based on Furkan Üzümcü's Furkanzmc/ExceptionHandler and Jerry Coffin's code. Thanks Furkan and Jerry!
#include <xbacktrace.h>
int main(int argc, char *argv[])
{
XBacktrace::enableBacktraceLogOnUnhandledException();
int *s = 0;
s = 10;
return 0;
}
$ wget https://raw.githubusercontent.com/e-fever/xbacktrace/master/XBacktrace.h
XBacktrace::enableBacktraceLogOnUnhandledException()
XBacktrace::enableBacktraceLogOnUnhandledException(callback)
TBD
XBacktrace::attachConsole()
Windows-Only API