Replaced call to KeBugCheck().
authorEric Kohl <eric.kohl@reactos.org>
Fri, 22 Jun 2001 12:19:45 +0000 (12:19 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Fri, 22 Jun 2001 12:19:45 +0000 (12:19 +0000)
svn path=/trunk/; revision=1999

reactos/lib/msafd/include/debug.h
reactos/lib/ws2_32/include/debug.h

index e90c428..0430c32 100644 (file)
@@ -36,11 +36,9 @@ extern DWORD DebugTraceLevel;
 #ifdef NASSERT
 #define ASSERT(x)
 #else /* NASSERT */
-#define ASSERT(x) if (!(x)) { AFD_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
+#define ASSERT(x) if (!(x)) { AFD_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); ExitProcess(0); }
 #endif /* NASSERT */
 
-#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
-
 #else /* DBG */
 
 #define AFD_DbgPrint(_t_, _x_)
@@ -52,7 +50,6 @@ extern DWORD DebugTraceLevel;
 
 
 #define assert(x) ASSERT(x)
-#define assert_irql(x) ASSERT_IRQL(x)
 
 
 #define UNIMPLEMENTED \
index c97840a..c0ee7d9 100644 (file)
@@ -36,11 +36,9 @@ extern DWORD DebugTraceLevel;
 #ifdef NASSERT
 #define ASSERT(x)
 #else /* NASSERT */
-#define ASSERT(x) if (!(x)) { WS_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
+#define ASSERT(x) if (!(x)) { WS_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); ExitProcess(0); }
 #endif /* NASSERT */
 
-#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
-
 #else /* DBG */
 
 #define WS_DbgPrint(_t_, _x_)