blob: d1275c7ccb54d92518fcb370cddc6a3bec5b0f30 [file] [log] [blame]
mtklein30e6e2a2014-06-18 11:44:15 -07001#ifndef CrashHandler_DEFINED
2#define CrashHandler_DEFINED
3
mtklein0e3fac22014-07-02 14:30:47 -07004// If possible (and not already done), and SK_CRASH_HANDLER is defined,
5// register a handler for a stack trace when we crash.
6//
mtkleinee9c49e2015-02-10 07:47:31 -08007// Currently this works on Linux and Mac and Windows.
8// On Linux, our output is garbage compared to catchsegv. Use catchsegv if possible.
mtklein30e6e2a2014-06-18 11:44:15 -07009void SetupCrashHandler();
10
11#endif//CrashHandler_DEFINED