From 0fbb946f42aeab750aa356160846ef7d0d862efe Mon Sep 17 00:00:00 2001 From: Amine Khaldi Date: Mon, 14 Oct 2013 16:39:18 +0000 Subject: [PATCH] [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 --- reactos/include/reactos/debug.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/reactos/include/reactos/debug.h b/reactos/include/reactos/debug.h index 03db1b6ddf0..71eb299f4d8 100644 --- a/reactos/include/reactos/debug.h +++ b/reactos/include/reactos/debug.h @@ -62,26 +62,26 @@ RtlAssert( #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