source: opengl-game/CrashLogger.h@ be34c9a

feature/imgui-sdl points-test
Last change on this file since be34c9a was 6abfd07, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago

Create a log with a stack-trace when the game crashes

  • Property mode set to 100644
File size: 211 bytes
Line 
1#ifndef CRASH_LOGGER_H
2#define CRASH_LOGGER_H
3
4#define CRASH_LOG_FILE "crash.log"
5
6class CrashLogger {
7public:
8 CrashLogger(int(*mainFunc)(int, char*[]), int argc, char* argv[]);
9 ~CrashLogger();
10};
11
12#endif
Note: See TracBrowser for help on using the repository browser.