mirror of
https://github.com/reactos/reactos.git
synced 2024-10-01 15:07:53 +00:00
[REACTOS/DEBUG]
* Set the assert related macros in consistency with the DDK ones, for release builds. * Improve the debug build checks here (DBG was not even considered before). svn path=/trunk/; revision=60666
This commit is contained in:
parent
bd779c1be5
commit
0fbb946f42
|
@ -62,26 +62,26 @@ RtlAssert(
|
||||||
#endif /* !defined(_RTLFUNCS_H) && !defined(_NTDDK_) */
|
#endif /* !defined(_RTLFUNCS_H) && !defined(_NTDDK_) */
|
||||||
|
|
||||||
#ifndef assert
|
#ifndef assert
|
||||||
#ifndef NASSERT
|
#if DBG && !defined(NASSERT)
|
||||||
#define assert(x) if (!(x)) { RtlAssert((PVOID)#x, (PVOID)__FILE__, __LINE__, ""); }
|
#define assert(x) if (!(x)) { RtlAssert((PVOID)#x, (PVOID)__FILE__, __LINE__, ""); }
|
||||||
#else
|
#else
|
||||||
#define assert(x)
|
#define assert(x) ((VOID) 0)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ASSERT
|
#ifndef ASSERT
|
||||||
#ifndef NASSERT
|
#if DBG && !defined(NASSERT)
|
||||||
#define ASSERT(x) if (!(x)) { RtlAssert((PVOID)#x, (PVOID)__FILE__, __LINE__, ""); }
|
#define ASSERT(x) if (!(x)) { RtlAssert((PVOID)#x, (PVOID)__FILE__, __LINE__, ""); }
|
||||||
#else
|
#else
|
||||||
#define ASSERT(x)
|
#define ASSERT(x) ((VOID) 0)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef ASSERTMSG
|
#ifndef ASSERTMSG
|
||||||
#ifndef NASSERT
|
#if DBG && !defined(NASSERT)
|
||||||
#define ASSERTMSG(m, x) if (!(x)) { RtlAssert((PVOID)#x, __FILE__, __LINE__, m); }
|
#define ASSERTMSG(m, x) if (!(x)) { RtlAssert((PVOID)#x, __FILE__, __LINE__, m); }
|
||||||
#else
|
#else
|
||||||
#define ASSERTMSG(m, x)
|
#define ASSERTMSG(m, x) ((VOID) 0)
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue