We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc51214 commit f4e2d2aCopy full SHA for f4e2d2a
code/logic/fossil/pizza/test.h
@@ -550,9 +550,9 @@ void _on_skip(const char *description);
550
#define _FOSSIL_TEST_ASSUME_MESSAGE(message, ...) \
551
pizza_test_assert_messagef((message) __VA_OPT__(, __VA_ARGS__))
552
#else
553
- // C11 and earlier: use GCC/Clang extension for ##__VA_ARGS__
554
- #define _FOSSIL_TEST_ASSUME_MESSAGE(message, ...) \
555
- pizza_test_assert_messagef((message), ##__VA_ARGS__)
+ // Portable workaround: always require at least one argument after 'message'
+ #define _FOSSIL_TEST_ASSUME_MESSAGE(...) \
+ pizza_test_assert_messagef(__VA_ARGS__)
556
#endif
557
558
/**
0 commit comments