fix: fixes TEST_PRINTF() expansion error #691

fixes TEST_PRINTF() expansion error when no variadic arguments are passed
This commit is contained in:
epsilonrt
2023-08-08 22:15:56 +02:00
parent 1b9199ee38
commit 7a9e25b445

View File

@ -105,7 +105,7 @@ void verifyTest(void);
#define TEST_MESSAGE(message) UnityMessage((message), __LINE__)
#define TEST_ONLY()
#ifdef UNITY_INCLUDE_PRINT_FORMATTED
#define TEST_PRINTF(message, ...) UnityPrintF(__LINE__, (message), __VA_ARGS__)
#define TEST_PRINTF(message, ...) UnityPrintF(__LINE__, (message), ##__VA_ARGS__)
#endif
/* It is not necessary for you to call PASS. A PASS condition is assumed if nothing fails.