blob: 606e81ef75d78fc5e8ee1968a43af684782db45f [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//
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>".
mtklein30e6e2a2014-06-18 11:44:15 -07009void SetupCrashHandler();
10
11#endif//CrashHandler_DEFINED