[Forensics-changes] [yara] 55/160: Corrected NDEBUG version of assertf macro to have the same definition as the DEBUG version.

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:29:18 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.4.0
in repository yara.

commit 4fab3841217eeb56cbb80a1158e22972c3091420
Author: orange.toaster <orange.toaster at gmail.com>
Date:   Tue Mar 17 17:37:16 2015 -0700

    Corrected NDEBUG version of assertf macro to have the same definition as the DEBUG version.
---
 libyara/include/yara/error.h | 2 +-
 libyara/include/yara/utils.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libyara/include/yara/error.h b/libyara/include/yara/error.h
index 1e2b6f7..d5e772c 100644
--- a/libyara/include/yara/error.h
+++ b/libyara/include/yara/error.h
@@ -88,7 +88,7 @@ limitations under the License.
 
 
 #ifdef NDEBUG
-#define assertf(expr, msg)  ((void)0)
+#define assertf(expr, msg, ...)  ((void)0)
 #else
 #define assertf(expr, msg, ...) \
     if(!(expr)) { \
diff --git a/libyara/include/yara/utils.h b/libyara/include/yara/utils.h
index 18f2c01..b76aede 100644
--- a/libyara/include/yara/utils.h
+++ b/libyara/include/yara/utils.h
@@ -52,7 +52,7 @@ limitations under the License.
 
 #ifdef NDEBUG
 
-#define assertf(expr, msg)  ((void)0)
+#define assertf(expr, msg, ...)  ((void)0)
 
 #else
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list