diff options
| author | louist103 <louist103@gmail.com> | 2022-10-25 11:59:52 -0400 |
|---|---|---|
| committer | louist103 <louist103@gmail.com> | 2022-10-25 11:59:52 -0400 |
| commit | d79e0fbfab492dc22fa0fa8fecaa2bdba77d6b4f (patch) | |
| tree | 77b328fcc1e5b7a860655b98c5cba473cdbdd5f1 /ZAPD/CrashHandler.h | |
| parent | 78fdac56498f674eba2692e075d415a12cb4a31f (diff) | |
Cleanup crash handler.
Diffstat (limited to 'ZAPD/CrashHandler.h')
| -rw-r--r-- | ZAPD/CrashHandler.h | 28 |
1 files changed, 1 insertions, 27 deletions
diff --git a/ZAPD/CrashHandler.h b/ZAPD/CrashHandler.h index 86e4930..102778b 100644 --- a/ZAPD/CrashHandler.h +++ b/ZAPD/CrashHandler.h @@ -1,32 +1,6 @@ #ifndef CRASH_HANDLER_H #define CRASH_HANDLER_H -#if __has_include(<unistd.h>) -#define HAS_POSIX 1 -#else -#define HAS_POSIX 0 -#endif - - -#include <array> -#include <cstdio> -#include <cstdlib> -#include <ctime> -#if HAS_POSIX == 1 -#include <csignal> -#include <cxxabi.h> // for __cxa_demangle -#include <dlfcn.h> // for dladdr -#include <execinfo.h> -#include <unistd.h> -void ErrorHandler(int sig); -#elif defined(_MSC_VER) -#include <Windows.h> -#include <DbgHelp.h> - -#include <inttypes.h> -LONG seh_filter(_EXCEPTION_POINTERS* ex); - -#pragma comment(lib, "Dbghelp.lib") -#endif +void CrashHandler_Init(); #endif |
