src/crashcatcher.h@29eb671b34f6
src/crashcatcher.h
Fri, 18 Oct 2013 21:52:09 +0300
- author
- Santeri Piippo <crimsondusk64@gmail.com>
- date
- Fri, 18 Oct 2013 21:52:09 +0300
- changeset 513
- 29eb671b34f6
- child 567
-
82101a296f9e
- permissions
- -rw-r--r--
Added a crash catcher which trigger under Linux. It calls GDB and tries to get a backtrace. Also integrated assertion failure handling to this new system. Removed the print() function in the process (because the new bomb box uses a text edit and QTextDocuments's print method clashes with the macro and I figured it was a good idea to rid it anyway) and replaced all calls with log().
#ifndef LDFORGE_CRASHCATCHER_H
#define LDFORGE_CRASHCATCHER_H
#ifdef __unix__
void initCrashCatcher();
#else // ifdef __unix__
#define initCrashCatcher()
#endif // ifdef __unix__
#endif // ifndef LDFORGE_CRASHCATCHER_H