xref: /aosp_15_r20/external/skia/tools/CrashHandler.h (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1 #ifndef CrashHandler_DEFINED
2 #define CrashHandler_DEFINED
3 
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.
8 // On Linux, our output is garbage compared to catchsegv.  Use catchsegv if possible.
9 void SetupCrashHandler();
10 
11 #endif//CrashHandler_DEFINED
12