From 5e4306f89d48fa86a7b79463f8c99bfa84333098 Mon Sep 17 00:00:00 2001 From: Snaipe Date: Wed, 11 Mar 2015 18:05:46 +0100 Subject: [PATCH] Made the Test macro comply to c99 va_args --- include/criterion/criterion.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/criterion/criterion.h b/include/criterion/criterion.h index cd8ada5..6c59180 100644 --- a/include/criterion/criterion.h +++ b/include/criterion/criterion.h @@ -56,12 +56,12 @@ struct criterion_test_set { # define TEST_PROTOTYPE_(Category, Name) \ void IDENTIFIER_(Category, Name, impl)(void) -# define Test(Category, Name, Args...) \ +# define Test(Category, Name, ...) \ TEST_PROTOTYPE_(Category, Name); \ struct criterion_test_extra_data IDENTIFIER_(Category, Name, extra) = { \ .file_ = __FILE__, \ .line_ = __LINE__, \ - Args \ + __VA_ARGS__ \ }; \ SECTION_("criterion_tests") \ const struct criterion_test IDENTIFIER_(Category, Name, meta) = { \