source: opengl-game/CrashLogger.h@ 621664a

feature/imgui-sdl points-test
Last change on this file since 621664a 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
RevLine 
[d9b6a1c]1#ifndef CRASH_LOGGER_H
2#define CRASH_LOGGER_H
3
[6abfd07]4#define CRASH_LOG_FILE "crash.log"
5
[d9b6a1c]6class CrashLogger {
7public:
[6abfd07]8 CrashLogger(int(*mainFunc)(int, char*[]), int argc, char* argv[]);
[d9b6a1c]9 ~CrashLogger();
10};
11
12#endif
Note: See TracBrowser for help on using the repository browser.