mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 05:43:24 +00:00
Replaced call to KeBugCheck().
svn path=/trunk/; revision=1999
This commit is contained in:
parent
770c504a74
commit
a25e9783d7
|
@ -36,11 +36,9 @@ extern DWORD DebugTraceLevel;
|
||||||
#ifdef NASSERT
|
#ifdef NASSERT
|
||||||
#define ASSERT(x)
|
#define ASSERT(x)
|
||||||
#else /* NASSERT */
|
#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 */
|
#endif /* NASSERT */
|
||||||
|
|
||||||
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
|
||||||
|
|
||||||
#else /* DBG */
|
#else /* DBG */
|
||||||
|
|
||||||
#define AFD_DbgPrint(_t_, _x_)
|
#define AFD_DbgPrint(_t_, _x_)
|
||||||
|
@ -52,7 +50,6 @@ extern DWORD DebugTraceLevel;
|
||||||
|
|
||||||
|
|
||||||
#define assert(x) ASSERT(x)
|
#define assert(x) ASSERT(x)
|
||||||
#define assert_irql(x) ASSERT_IRQL(x)
|
|
||||||
|
|
||||||
|
|
||||||
#define UNIMPLEMENTED \
|
#define UNIMPLEMENTED \
|
||||||
|
|
|
@ -36,11 +36,9 @@ extern DWORD DebugTraceLevel;
|
||||||
#ifdef NASSERT
|
#ifdef NASSERT
|
||||||
#define ASSERT(x)
|
#define ASSERT(x)
|
||||||
#else /* NASSERT */
|
#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 */
|
#endif /* NASSERT */
|
||||||
|
|
||||||
#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
|
|
||||||
|
|
||||||
#else /* DBG */
|
#else /* DBG */
|
||||||
|
|
||||||
#define WS_DbgPrint(_t_, _x_)
|
#define WS_DbgPrint(_t_, _x_)
|
||||||
|
|
Loading…
Reference in a new issue