Author: akhaldi Date: Mon Oct 14 16:39:18 2013 New Revision: 60666
URL: http://svn.reactos.org/svn/reactos?rev=60666&view=rev Log: [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).
Modified: trunk/reactos/include/reactos/debug.h
Modified: trunk/reactos/include/reactos/debug.h URL: http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/debug.h?rev... ============================================================================== --- trunk/reactos/include/reactos/debug.h [iso-8859-1] (original) +++ trunk/reactos/include/reactos/debug.h [iso-8859-1] Mon Oct 14 16:39:18 2013 @@ -62,26 +62,26 @@ #endif /* !defined(_RTLFUNCS_H) && !defined(_NTDDK_) */
#ifndef assert -#ifndef NASSERT +#if DBG && !defined(NASSERT) #define assert(x) if (!(x)) { RtlAssert((PVOID)#x, (PVOID)__FILE__, __LINE__, ""); } #else -#define assert(x) +#define assert(x) ((VOID) 0) #endif #endif
#ifndef ASSERT -#ifndef NASSERT +#if DBG && !defined(NASSERT) #define ASSERT(x) if (!(x)) { RtlAssert((PVOID)#x, (PVOID)__FILE__, __LINE__, ""); } #else -#define ASSERT(x) +#define ASSERT(x) ((VOID) 0) #endif #endif
#ifndef ASSERTMSG -#ifndef NASSERT +#if DBG && !defined(NASSERT) #define ASSERTMSG(m, x) if (!(x)) { RtlAssert((PVOID)#x, __FILE__, __LINE__, m); } #else -#define ASSERTMSG(m, x) +#define ASSERTMSG(m, x) ((VOID) 0) #endif #endif