From ace025de90a76b206ce99f0ae8e5829d82a18240 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Mon, 8 Jan 2007 19:12:24 +0000 Subject: [PATCH] generate bluescreens on fatal cpp errors (assertions to) --- lib/base/eerror.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/base/eerror.cpp b/lib/base/eerror.cpp index 39c78623..8766f5ec 100644 --- a/lib/base/eerror.cpp +++ b/lib/base/eerror.cpp @@ -74,6 +74,8 @@ int logOutputConsole=1; static pthread_mutex_t DebugLock = PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP; +extern void bsodFatal(); + void eFatal(const char* fmt, ...) { char buf[1024]; @@ -84,7 +86,7 @@ void eFatal(const char* fmt, ...) singleLock s(DebugLock); logOutput(lvlFatal, buf); fprintf(stderr, "FATAL: %s\n",buf ); - _exit(0); + bsodFatal(); } #ifdef DEBUG -- 2.30.2