2014-06-18 18:44:15 +00:00
|
|
|
#ifndef CrashHandler_DEFINED
|
|
|
|
#define CrashHandler_DEFINED
|
|
|
|
|
2014-07-02 21:30:47 +00:00
|
|
|
// If possible (and not already done), and SK_CRASH_HANDLER is defined,
|
|
|
|
// register a handler for a stack trace when we crash.
|
|
|
|
//
|
2015-02-10 15:47:31 +00:00
|
|
|
// Currently this works on Linux and Mac and Windows.
|
|
|
|
// On Linux, our output is garbage compared to catchsegv. Use catchsegv if possible.
|
2014-06-18 18:44:15 +00:00
|
|
|
void SetupCrashHandler();
|
|
|
|
|
|
|
|
#endif//CrashHandler_DEFINED
|