mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
28 lines
400 B
C++
28 lines
400 B
C++
|
#include "crash_handler.h"
|
||
|
|
||
|
#include "core/error_macros.h"
|
||
|
|
||
|
void CrashHandler::enable() {
|
||
|
}
|
||
|
void CrashHandler::disable() {
|
||
|
}
|
||
|
|
||
|
CrashHandler *CrashHandler::get_singleton() {
|
||
|
return _self;
|
||
|
}
|
||
|
|
||
|
CrashHandler::CrashHandler() {
|
||
|
enabled = false;
|
||
|
|
||
|
_self = this;
|
||
|
}
|
||
|
CrashHandler::~CrashHandler() {
|
||
|
disable();
|
||
|
|
||
|
if (_self == this) {
|
||
|
_self = nullptr;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
CrashHandler *CrashHandler::_self = nullptr;
|