]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Get rid of ASSERT_ALWAYS_AVAILABLE
authorVMware, Inc <>
Wed, 18 Sep 2013 03:40:38 +0000 (20:40 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 23 Sep 2013 05:30:00 +0000 (22:30 -0700)
Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/include/vm_assert.h

index 734bcc88f4aa917fce7ba1b1089c8b225d8c6632..619050a0151cbe06c892de32dc2fc6118392b220 100644 (file)
@@ -180,11 +180,11 @@ EXTERN void WarningThrottled(uint32 *count, const char *fmt, ...)
     */
 
    #ifdef __GNUC__
-      #define ASSERT_IFNOT(cond, panic)                                              \
-                 ({if (UNLIKELY(!(cond))) { panic; if (0) { if (cond) { ; } } } (void)0;})
+      #define ASSERT_IFNOT(cond, panic)                                       \
+         ({if (UNLIKELY(!(cond))) { panic; if (0) { if (cond) {;}}} (void)0;})
    #else
-      #define ASSERT_IFNOT(cond, panic)                               \
-                 (UNLIKELY(!(cond)) ? (panic) : (void)0)
+      #define ASSERT_IFNOT(cond, panic)                                       \
+         (UNLIKELY(!(cond)) ? (panic) : (void)0)
    #endif
 #endif
 
@@ -196,7 +196,7 @@ EXTERN void WarningThrottled(uint32 *count, const char *fmt, ...)
  * ASSERT() is special cased because of interaction with Windows DDK.
  */
 
-#if defined VMX86_DEBUG || defined ASSERT_ALWAYS_AVAILABLE
+#if defined VMX86_DEBUG
 #undef ASSERT
 #define ASSERT(cond) \
            ASSERT_IFNOT(cond, _ASSERT_PANIC(AssertAssert))
@@ -307,7 +307,7 @@ do {                                                        \
  * Redefine macros that are only in debug versions
  */
 
-#if !defined VMX86_DEBUG && !defined ASSERT_ALWAYS_AVAILABLE // {
+#if !defined VMX86_DEBUG // {
 
 #undef  ASSERT
 #define ASSERT(cond) ((void) 0)