mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 09:25:10 +00:00
[DDK][XDK]
- Do not evaluate the NT_ASSERT macro's parameter before stringifying it. Forgot this in r61008/CORE-7758 svn path=/trunk/; revision=61686
This commit is contained in:
parent
2de6ec8ee9
commit
32a9726da2
2 changed files with 30 additions and 6 deletions
|
@ -11063,9 +11063,21 @@ RtlCheckBit(
|
|||
(__assert_annotationW(msg), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE)
|
||||
|
||||
#define NT_ASSERT(exp) ((void)NT_VERIFY(exp))
|
||||
#define NT_ASSERTMSG(msg, exp) ((void)NT_VERIFYMSG(msg, exp))
|
||||
#define NT_ASSERTMSGW(msg, exp) ((void)NT_VERIFYMSGW(msg, exp))
|
||||
/* Can't reuse verify, see above */
|
||||
#define NT_ASSERT(exp) \
|
||||
((VOID)((!(exp)) ? \
|
||||
(__assert_annotationA(#exp), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE))
|
||||
|
||||
#define NT_ASSERTMSG(msg, exp) \
|
||||
((VOID)((!(exp)) ? \
|
||||
(__assert_annotationA(msg), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE))
|
||||
|
||||
#define NT_ASSERTMSGW(msg, exp) \
|
||||
((VOID)((!(exp)) ? \
|
||||
(__assert_annotationW(msg), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE))
|
||||
|
||||
#else /* !DBG */
|
||||
|
||||
|
|
|
@ -3133,9 +3133,21 @@ RtlCheckBit(
|
|||
(__assert_annotationW(msg), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE)
|
||||
|
||||
#define NT_ASSERT(exp) ((void)NT_VERIFY(exp))
|
||||
#define NT_ASSERTMSG(msg, exp) ((void)NT_VERIFYMSG(msg, exp))
|
||||
#define NT_ASSERTMSGW(msg, exp) ((void)NT_VERIFYMSGW(msg, exp))
|
||||
/* Can't reuse verify, see above */
|
||||
#define NT_ASSERT(exp) \
|
||||
((VOID)((!(exp)) ? \
|
||||
(__assert_annotationA(#exp), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE))
|
||||
|
||||
#define NT_ASSERTMSG(msg, exp) \
|
||||
((VOID)((!(exp)) ? \
|
||||
(__assert_annotationA(msg), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE))
|
||||
|
||||
#define NT_ASSERTMSGW(msg, exp) \
|
||||
((VOID)((!(exp)) ? \
|
||||
(__assert_annotationW(msg), \
|
||||
DbgRaiseAssertionFailure(), FALSE) : TRUE))
|
||||
|
||||
#else /* !DBG */
|
||||
|
||||
|
|
Loading…
Reference in a new issue