Made the Test macro comply to c99 va_args
This commit is contained in:
parent
c6c106c4eb
commit
5e4306f89d
1 changed files with 2 additions and 2 deletions
|
@ -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) = { \
|
||||
|
|
Loading…
Add table
Reference in a new issue