git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@87 4df4b0f3-56ce-47cb-b001-ed939b7d65a6
26 lines
460 B
C++
26 lines
460 B
C++
/*
|
|
OpenLieroX CrashHandler
|
|
|
|
registers a crash handler in the OS and handles the crashes
|
|
|
|
code under LGPL
|
|
created 09-07-2008 by Albert Zeyer
|
|
*/
|
|
|
|
#ifndef __CRASHHANDLER_H__
|
|
#define __CRASHHANDLER_H__
|
|
|
|
class CrashHandler {
|
|
public:
|
|
virtual ~CrashHandler() {}
|
|
static void init();
|
|
static void uninit();
|
|
static CrashHandler* get();
|
|
|
|
// you can temporarly disable it (and then enable it again)
|
|
virtual void disable() {}
|
|
virtual void enable() {}
|
|
};
|
|
|
|
#endif
|