19 lines
428 B
C
19 lines
428 B
C
#ifndef CRASH_HANDLER_H
|
|
#define CRASH_HANDLER_H
|
|
|
|
#include <signal.h>
|
|
#include <ucontext.h>
|
|
|
|
void ForceCrashHandler( const char *reason );
|
|
void CrashSignalHandler( int signal, siginfo_t *si, const ucontext_t *uc );
|
|
void CrashHandlerHandleArgs( int argc, char* argv[] );
|
|
void InitializeCrashHandler();
|
|
|
|
#if defined(DARWIN)
|
|
#include <MachineExceptions.h>
|
|
OSStatus CrashExceptionHandler( ExceptionInformation *e );
|
|
#endif
|
|
|
|
#endif
|
|
|