Переглянути джерело

switch segfault to DbgBrk

cxgeorge 24 роки тому
батько
коміт
c26641b394
1 змінених файлів з 7 додано та 2 видалено
  1. 7 2
      dtool/src/dconfig/notify.cxx

+ 7 - 2
dtool/src/dconfig/notify.cxx

@@ -25,6 +25,10 @@
 #include <ctype.h>
 #include <time.h>  // for strftime().
 
+#ifdef WIN32
+#include <windows.h>   //for DebugBreak()
+#endif
+
 Notify *Notify::_global_ptr = (Notify *)NULL;
 
 
@@ -433,8 +437,9 @@ assert_failure(const char *expression, int line,
     // an uncaught exception just exits, without offering to open the
     // debugger.  Guess we'll have to force a segfault.
 
-    int *ptr = (int *)NULL;
-    *ptr = 1;
+//    int *ptr = (int *)NULL;
+//    *ptr = 1;
+      DebugBreak();
 #else
     abort();
 #endif