mirror of
https://github.com/Relintai/pandemonium_engine_minimal.git
synced 2025-01-04 20:59:36 +01:00
31 lines
596 B
C++
31 lines
596 B
C++
#ifndef CRASH_HANDLER_WINDOWS_H
|
|
#define CRASH_HANDLER_WINDOWS_H
|
|
|
|
/* crash_handler_windows.h */
|
|
|
|
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
|
|
// Crash handler exception only enabled with MSVC
|
|
#if defined(DEBUG_ENABLED) && defined(MSVC)
|
|
#define CRASH_HANDLER_EXCEPTION 1
|
|
|
|
extern DWORD CrashHandlerException(EXCEPTION_POINTERS *ep);
|
|
#endif
|
|
|
|
class CrashHandler {
|
|
bool disabled;
|
|
|
|
public:
|
|
void initialize();
|
|
|
|
void disable();
|
|
bool is_disabled() const { return disabled; };
|
|
|
|
CrashHandler();
|
|
~CrashHandler();
|
|
};
|
|
|
|
#endif // CRASH_HANDLER_WINDOWS_H
|