From 4cd4a9b4c457259596669e8a3a279e02799baff5 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Fri, 22 Jul 2016 00:07:00 +0530 Subject: tests: fix gdTestAssertMsg handling of messages w/out format flags If the message doesn't contain any format flags (e.g. %s), don't force the caller to pass in a dummy arg to make the compiler happy. --- tests/gdtest/gdtest.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/gdtest') diff --git a/tests/gdtest/gdtest.h b/tests/gdtest/gdtest.h index e6cb2c5..eecf5f6 100644 --- a/tests/gdtest/gdtest.h +++ b/tests/gdtest/gdtest.h @@ -70,7 +70,7 @@ int _gdTestErrorMsg(const char* file, unsigned int line, const char* string, ... #define gdTestAssert(cond) _gdTestAssert(__FILE__, __LINE__, (cond)) -#define gdTestAssertMsg(cond, message, ...) _gdTestAssertMsg(__FILE__, __LINE__, (cond),(message),__VA_ARGS__) +#define gdTestAssertMsg(cond, message, ...) _gdTestAssertMsg(__FILE__, __LINE__, (cond), (message), ## __VA_ARGS__) #define gdTestErrorMsg(...) _gdTestErrorMsg(__FILE__, __LINE__, __VA_ARGS__) -- cgit v1.2.1