mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
23 lines
326 B
C++
23 lines
326 B
C++
#ifndef CRASH_HANDLER_H
|
|
#define CRASH_HANDLER_H
|
|
|
|
class CrashHandler {
|
|
public:
|
|
virtual void enable();
|
|
virtual void disable();
|
|
|
|
bool is_enabled() const { return enabled; };
|
|
|
|
static CrashHandler *get_singleton();
|
|
|
|
CrashHandler();
|
|
virtual ~CrashHandler();
|
|
|
|
protected:
|
|
static CrashHandler *_self;
|
|
|
|
bool enabled;
|
|
};
|
|
|
|
#endif
|