Browse Source

Consistency in debug macros definitions

Source commit: 409cfb7d4e7a817e2bab3f89592c44d15c5c9b43
Martin Prikryl 10 years ago
parent
commit
4538fcd7f1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      source/core/Global.h

+ 2 - 2
source/core/Global.h

@@ -36,7 +36,7 @@ private:
 #define ACCESS_VIOLATION_TEST { (*((int*)NULL)) = 0; }
 #if !defined(_DEBUG) || defined(DESIGN_ONLY)
 #define DebugAssert(p)   ((void)0)
-#define DebugCheck(p) p
+#define DebugCheck(p) (p)
 #define DebugFail
 #else // if !defined(_DEBUG) || defined(DESIGN_ONLY)
 void __fastcall DoAssert(wchar_t * Message, wchar_t * Filename, int LineNumber);
@@ -47,7 +47,7 @@ void __fastcall DoAssert(wchar_t * Message, wchar_t * Filename, int LineNumber);
 //---------------------------------------------------------------------------
 #define DebugAlwaysTrue(p) (p)
 #define DebugAlwaysFalse(p) (p)
-#define DebugNotNull(P) P
+#define DebugNotNull(p) (p)
 #define DebugUsedParam(p) ((&p) == (&p))
 //---------------------------------------------------------------------------
 #endif