forked from mirror/openmw-tes3mp
Moved crashcatcher to a component and also use it in CS
Reworked debugger detection (failed on gdb 7.11), it now uses /proc to detect the debuggerremotes/1728160796594174844/tmp_0.7.0-alpha
parent
b36bd75b59
commit
03c75794c1
@ -0,0 +1,18 @@
|
|||||||
|
#ifndef CRASHCATCHER_H
|
||||||
|
#define CRASHCATCHER_H
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
|
||||||
|
#if (defined(__APPLE__) || (defined(__linux) && !defined(ANDROID)) || (defined(__unix) && !defined(ANDROID)) || defined(__posix))
|
||||||
|
#define USE_CRASH_CATCHER 1
|
||||||
|
#else
|
||||||
|
#define USE_CRASH_CATCHER 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if USE_CRASH_CATCHER
|
||||||
|
extern void cc_install(int argc, char **argv, const std::string &crashLogPath);
|
||||||
|
#else
|
||||||
|
inline void cc_install(int, char **) { return 0; }
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue