rcpp_framework/core/os/crash_handler.h

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