Inexor
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Functions
CrashReporter.hpp File Reference

we catch the signals send to us by the OS on crash and display a stackwalker afterwards. More...

#include <signal.h>

Go to the source code of this file.

Classes

class  inexor::crashreporter::CrashReporter
 

Namespaces

 inexor
 Show stacktrace on unix, do not include directly.
 
 inexor::crashreporter
 

Functions

void inexor::crashreporter::abortHandler (int signum)
 This function serves as callback for the signals function. More...
 

Detailed Description

we catch the signals send to us by the OS on crash and display a stackwalker afterwards.

This works on unix as well as on windows, in release mode as well as in debug mode. (Just make sure you got debuginfo on windows and initiate this class somewhere in your code, as singleton or as instance in your main functin, either works)