From 781877bd26ed7ab01ae6cf952bf4691641593ed2 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Sat, 22 Mar 2025 01:21:56 +0100 Subject: Add function_ref --- asl/testing/testing.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asl/testing') 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__); } -- cgit