mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
467989cdd5
Reworked debugger detection (failed on gdb 7.11), it now uses /proc to detect the debugger
19 lines
451 B
C++
19 lines
451 B
C++
#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
|