]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Replace ASSERT_DEVEL(p) with DEVEL_ONLY(ASSERT(p))
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:41 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:41 +0000 (11:23 -0700)
It wasn't clear when ASSERT_DEVEL was enabled: was
it for all VMX86_DEVEL builds or for the intersection of
VMX86_DEVEL and VMX86_DEBUG?

Replace ASSERT_DEVEL(p) with DEVEL_ONLY(ASSERT(p)) to make it
clear that it's the latter.

open-vm-tools/lib/include/vm_assert.h

index 1d25662633de12126017b04268cc97199c4b4387..edd209ed413f311730afc7dc0416c3863056b313 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 1998-2016 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2017 VMware, Inc. All rights reserved.
  *
  * This program is free software; you can redistribute it and/or modify it
  * under the terms of the GNU Lesser General Public License as published
@@ -228,10 +228,8 @@ void WarningThrottled(uint32 *count, const char *fmt, ...) PRINTF_DECL(2, 3);
            ASSERT_IFNOT(cond, _ASSERT_PANIC(AssertMemAlloc))
 
 #ifdef VMX86_DEVEL
-#define ASSERT_DEVEL(cond) ASSERT(cond)
 #define NOT_TESTED()       Warning(_AssertNotTestedFmt "\n", __FILE__, __LINE__)
 #else
-#define ASSERT_DEVEL(cond) ((void)0)
 #define NOT_TESTED()       Log(_AssertNotTestedFmt "\n", __FILE__, __LINE__)
 #endif