diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-22 01:21:56 +0100 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2025-03-22 19:24:40 +0100 |
commit | 781877bd26ed7ab01ae6cf952bf4691641593ed2 (patch) | |
tree | 1f64c53d7fdada9d751fb88c4fa35fbf03305221 /asl/testing | |
parent | c692909ff332de6f2e32db844458ccd03a080e53 (diff) |
Add function_ref
Diffstat (limited to 'asl/testing')
-rw-r--r-- | asl/testing/testing.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asl/testing/testing.hpp b/asl/testing/testing.hpp index 3b4a421..8ea73a3 100644 --- a/asl/testing/testing.hpp +++ b/asl/testing/testing.hpp @@ -46,6 +46,6 @@ struct Test if (EXPR) {} \ else { ::asl::testing::report_failure(#EXPR); return; } -#define ASL_TEST_EXPECT(EXPR) \ - if (EXPR) {} \ - else { ::asl::testing::report_failure(#EXPR); } +#define ASL_TEST_EXPECT(...) \ + if (__VA_ARGS__) {} \ + else { ::asl::testing::report_failure(#__VA_ARGS__); } |