mtklein | 30e6e2a | 2014-06-18 11:44:15 -0700 | [diff] [blame] | 1 | #ifndef CrashHandler_DEFINED |
| 2 | #define CrashHandler_DEFINED |
| 3 | |
mtklein | 0e3fac2 | 2014-07-02 14:30:47 -0700 | [diff] [blame] | 4 | // If possible (and not already done), and SK_CRASH_HANDLER is defined, |
| 5 | // register a handler for a stack trace when we crash. |
| 6 | // |
mtklein | ee9c49e | 2015-02-10 07:47:31 -0800 | [diff] [blame] | 7 | // Currently this works on Linux and Mac and Windows. |
| 8 | // On Linux, our output is garbage compared to catchsegv. Use catchsegv if possible. |
mtklein | 30e6e2a | 2014-06-18 11:44:15 -0700 | [diff] [blame] | 9 | void SetupCrashHandler(); |
| 10 | |
| 11 | #endif//CrashHandler_DEFINED |