diff options
author | Shauren <shauren.trinity@gmail.com> | 2016-03-03 17:29:48 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2016-03-03 17:29:48 +0100 |
commit | dea7d429abe5143672154784f93e4b19020062d5 (patch) | |
tree | e985ab2ecffaac45e7c1f15514c2c7bdfa519ab4 /src/common/Debugging/Errors.cpp | |
parent | d0263c03fd7cc7291b2eed2a3ca027cf1a8926e2 (diff) |
Core/Debugging: Make abort() less bad on windows by forcing crash log generation
Diffstat (limited to 'src/common/Debugging/Errors.cpp')
-rw-r--r-- | src/common/Debugging/Errors.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/Debugging/Errors.cpp b/src/common/Debugging/Errors.cpp index 04624147e1b..789249ee310 100644 --- a/src/common/Debugging/Errors.cpp +++ b/src/common/Debugging/Errors.cpp @@ -96,4 +96,11 @@ void Abort(char const* file, int line, char const* function) exit(1); } +void AbortHandler(int sigval) +{ + // nothing useful to log here, no way to pass args + *((volatile int*)NULL) = 0; + exit(1); +} + } // namespace Trinity |