2018-07-05 20:55:19 +00:00
|
|
|
#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
|
2018-07-09 14:20:49 +00:00
|
|
|
extern void crashCatcherInstall(int argc, char **argv, const std::string &crashLogPath);
|
2018-07-05 20:55:19 +00:00
|
|
|
#else
|
2018-07-09 17:51:38 +00:00
|
|
|
inline void crashCatcherInstall(int, char **, const std::string &crashLogPath)
|
|
|
|
{
|
|
|
|
}
|
2018-07-05 20:55:19 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|