Skip to content

Commit

Permalink
fix: build error when used in C++ source code files.
Browse files Browse the repository at this point in the history
  • Loading branch information
qgymib committed Mar 27, 2024
1 parent 4661a5d commit f3141e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/cutest.h
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ extern "C" {
#define TEST_PARAMETERIZED_DEFINE(fixture, test, TYPE, ...) \
static void cutest_usertest_parameterized_register_##fixture##_##test(void (*cb)(TYPE*, unsigned long)) {\
static TYPE s_parameterized_userdata[] = { __VA_ARGS__ };\
static cutest_case_t s_tests[TEST_NARG(__VA_ARGS__)];\
static cutest_case_t s_tests[sizeof(s_parameterized_userdata) / sizeof(s_parameterized_userdata[0])];\
unsigned long number_of_parameterized_data = sizeof(s_parameterized_userdata) / sizeof(s_parameterized_userdata[0]);\
unsigned long i = 0;\
for (i = 0; i < number_of_parameterized_data; i++) {\
Expand Down

0 comments on commit f3141e9

Please sign in to comment.