Skip to content

Commit 20e401a

Browse files
Address Michael's code review.
1 parent 6befcb9 commit 20e401a

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

antithesis_sdk.h

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -945,14 +945,7 @@ do { \
945945
break; \
946946
} \
947947
} \
948-
antithesis::internal::CatalogEntry< \
949-
antithesis::internal::assertions::ALWAYS_ASSERTION, \
950-
antithesis::internal::fixed_string(message), \
951-
FIXED_STRING_FROM_C_STR(std::source_location::current().file_name()), \
952-
FIXED_STRING_FROM_C_STR(std::source_location::current().function_name()), \
953-
std::source_location::current().line(), \
954-
std::source_location::current().column() \
955-
>::assertion.check_assertion(disjunction, (antithesis::JSON(__VA_ARGS__ __VA_OPT__(,) pairs)) ); \
948+
ANTITHESIS_ASSERT_RAW(antithesis::internal::assertions::ALWAYS_ASSERTION, disjunction, message, __VA_ARGS__ __VA_OPT__(,) pairs); \
956949
antithesis::JSON json_pairs = antithesis::JSON(pairs); \
957950
antithesis::internal::BooleanGuidanceCatalogEntry< \
958951
decltype(json_pairs), \
@@ -975,16 +968,9 @@ do { \
975968
break; \
976969
} \
977970
} \
978-
CatalogEntry< \
979-
antithesis::internal::assertions::SOMETIMES_ASSERTION, \
980-
antithesis::internal::fixed_string(message), \
981-
FIXED_STRING_FROM_C_STR(std::source_location::current().file_name()), \
982-
FIXED_STRING_FROM_C_STR(std::source_location::current().function_name()), \
983-
std::source_location::current().line(), \
984-
std::source_location::current().column() \
985-
>::assertion.check_assertion(conjunction, (antithesis::JSON(__VA_ARGS__ __VA_OPT__(,) pairs)) ); \
971+
ANTITHESIS_ASSERT_RAW(antithesis::internal::assertions::SOMETIMES_ASSERTION, conjunction, message, __VA_ARGS__ __VA_OPT__(,) pairs); \
986972
antithesis::JSON json_pairs = antithesis::JSON(pairs); \
987-
BooleanGuidanceCatalogEntry< \
973+
antithesis::internal::BooleanGuidanceCatalogEntry< \
988974
decltype(json_pairs), \
989975
antithesis::internal::assertions::GUIDEPOST_ALL, \
990976
antithesis::internal::fixed_string(message), \

0 commit comments

Comments
 (0)