2004-11-16 Casper S. Hornstrup <chorns@users.sourceforge.net>
[reactos.git] / reactos / drivers / net / tcpip / include / debug.h
index 56a8bf2..a85ef44 100644 (file)
@@ -57,29 +57,12 @@ extern DWORD DebugTraceLevel;
 
 #endif /* _MSC_VER */
 
-#if 0
-#ifdef ASSERT
-#undef ASSERT
-#endif
-
-#ifdef NASSERT
-#define ASSERT(x)
-#else /* NASSERT */
-#define ASSERT(x) if (!(x)) { TI_DbgPrint(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); KeBugCheck(0); }
-#endif /* NASSERT */
-#endif
-
 #define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
 
 #else /* DBG */
 
 #define TI_DbgPrint(_t_, _x_)
 
-#if 0
-#define ASSERT_IRQL(x)
-#define ASSERT(x)
-#endif
-
 #endif /* DBG */
 
 
@@ -109,6 +92,10 @@ extern DWORD DebugTraceLevel;
 
 #include <memtrack.h>
 
+#define ASSERT_KM_POINTER(_x) \
+   ASSERT(((PVOID)_x) != (PVOID)0xcccccccc); \
+   ASSERT(((PVOID)_x) >= (PVOID)0x80000000);
+
 #endif /* __DEBUG_H */
 
 /* EOF */