From 9b4967d3c04585d5894d34a1c0cbf5422b264372 Mon Sep 17 00:00:00 2001 From: Nomango <569629550@qq.com> Date: Thu, 1 Feb 2018 22:22:29 +0800 Subject: [PATCH] fix macro bugs. --- core/emacros.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/emacros.h b/core/emacros.h index 82a8a711..80d43625 100644 --- a/core/emacros.h +++ b/core/emacros.h @@ -60,7 +60,7 @@ EXTERN_C IMAGE_DOS_HEADER __ImageBase; #if defined( DEBUG ) || defined( _DEBUG ) #define ASSERT(b, m, ...) do {if (!(b)) { fwprintf(stderr, L"Assert: " #m L"\n", __VA_ARGS__); assert(b); }} while(0) #else - #define ASSERT(b, m) ((void)0) + #define ASSERT(b, m, ...) ((void)0) #endif //DEBUG || _DEBUG #endif @@ -68,6 +68,6 @@ EXTERN_C IMAGE_DOS_HEADER __ImageBase; #if defined( DEBUG ) || defined( _DEBUG ) #define WARN_IF(b, m, ...) do {if (b) { fwprintf(stderr, L"Warning: " #m L"\n", __VA_ARGS__); }} while(0) #else - #define WARN_IF(b, m) ((void)0) + #define WARN_IF(b, m, ...) ((void)0) #endif //DEBUG || _DEBUG #endif \ No newline at end of file