From 89b41695439cf5729d2fee343af2ee6f86c0310d Mon Sep 17 00:00:00 2001 From: Mitya Selivanov <0x7fffff@guattari.ru> Date: Sun, 7 Aug 2022 00:29:51 +0400 Subject: fix REQUIRE --- .gitignore | 6 ------ source/kit_test/test.h | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 2f2be3e..27fe36a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,2 @@ /*build*/ - -/.vs/ /.idea/ -*.sln -*.vcxproj -*.filters -*.user diff --git a/source/kit_test/test.h b/source/kit_test/test.h index a57f768..f53ab88 100644 --- a/source/kit_test/test.h +++ b/source/kit_test/test.h @@ -83,8 +83,8 @@ extern struct kit_tests_list kit_tests_list; KIT_TEST_FILE)( \ int kit_test_index_, kit_test_report kit_test_report_) -#define KIT_REQUIRE(ok) \ - kit_test_report_(kit_test_index_, __FILE__, __LINE__, (ok)) +#define KIT_REQUIRE(...) \ + kit_test_report_(kit_test_index_, __FILE__, __LINE__, (__VA_ARGS__)) int kit_run_tests(int argc, char **argv); -- cgit v1.2.3