mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Debugging: Make abort() less bad on windows by forcing crash log generation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user