Skip to content

Commit debfe5f

Browse files
apply c version
1 parent 690b4ba commit debfe5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

code/logic/fossil/pizza/test.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,9 +552,14 @@ void _on_skip(const char *description);
552552
#define _FOSSIL_TEST_ASSUME_MESSAGE(message, ...) \
553553
pizza_test_assert_messagef((message) __VA_OPT__(, __VA_ARGS__))
554554
#else
555+
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201710L
556+
#define _FOSSIL_TEST_ASSUME_MESSAGE(message, ...) \
557+
pizza_test_assert_messagef((message) __VA_OPT__(, __VA_ARGS__))
558+
#else
555559
#define _FOSSIL_TEST_ASSUME_MESSAGE(message, ...) \
556560
pizza_test_assert_messagef((message), ##__VA_ARGS__)
557561
#endif
562+
#endif
558563

559564
/**
560565
* @brief Macro for defining a Given step in a behavior-driven development test.

0 commit comments

Comments
 (0)