@@ -906,7 +906,7 @@ namespace { // Anonymous namespace which is translation-unit-specific; certain s
906
906
#define ANTITHESIS_NUMERIC_ASSERT_RAW (name, assertion_type, guidepost_type, left, cmp, right, message, ...) \
907
907
do { \
908
908
static_assert (std::is_same_v<decltype (left), decltype (right)>, " Values compared in " #name " must be of same type" ); \
909
- ANTITHESIS_ASSERT_RAW (assertion_type, left cmp right, message, __VA_ARGS__, {{ " left" , left }, { " right" , right }} ); \
909
+ ANTITHESIS_ASSERT_RAW (assertion_type, left cmp right, message, __VA_ARGS__ __VA_OPT__ (,) {{ " left" , left }, { " right" , right }} ); \
910
910
antithesis::internal::NumericGuidanceCatalogEntry< \
911
911
decltype (left), \
912
912
guidepost_type, \
@@ -952,7 +952,7 @@ do { \
952
952
FIXED_STRING_FROM_C_STR (std::source_location::current ().function_name ()), \
953
953
std::source_location::current ().line (), \
954
954
std::source_location::current ().column () \
955
- >::assertion.check_assertion (disjunction, (antithesis::JSON (__VA_ARGS__, pairs)) ); \
955
+ >::assertion.check_assertion (disjunction, (antithesis::JSON (__VA_ARGS__ __VA_OPT__ (,) pairs)) ); \
956
956
antithesis::JSON json_pairs = antithesis::JSON (pairs); \
957
957
antithesis::internal::BooleanGuidanceCatalogEntry< \
958
958
decltype (json_pairs), \
@@ -982,7 +982,7 @@ do { \
982
982
FIXED_STRING_FROM_C_STR (std::source_location::current ().function_name ()), \
983
983
std::source_location::current ().line (), \
984
984
std::source_location::current ().column () \
985
- >::assertion.check_assertion (conjunction, (antithesis::JSON (__VA_ARGS__, pairs)) ); \
985
+ >::assertion.check_assertion (conjunction, (antithesis::JSON (__VA_ARGS__ __VA_OPT__ (,) pairs)) ); \
986
986
antithesis::JSON json_pairs = antithesis::JSON (pairs); \
987
987
BooleanGuidanceCatalogEntry< \
988
988
decltype (json_pairs), \
0 commit comments