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 | // |
| 7 | // Currently this works on Linux and Mac and Windows, but on Linux, you will |
| 8 | // get much better results than we can deliver by running "catchsegv <program>". |
mtklein | 30e6e2a | 2014-06-18 11:44:15 -0700 | [diff] [blame] | 9 | void SetupCrashHandler(); |
| 10 | |
| 11 | #endif//CrashHandler_DEFINED |