diff options
-rw-r--r-- | test.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -24,7 +24,7 @@ struct test { __attribute__((__used__)) = \ { test_##name, desc }; \ static bool test_##name(void) -#define DATA(...) (unsigned char []){ __VA_ARGS__ } +#define DATA(...) ((unsigned char []){ __VA_ARGS__ }) #define CHECK(test) if (!(test)) { puts("! " #test); return false; } #define CHECK_UNPACK(data, fmt, ...) do { \ @@ -44,7 +44,7 @@ struct test { CHECK_UNPACK_STRUCT_s); \ return false; \ } \ -} while(0) +} while (0) #define CHECK_EQUAL(f, a, b) if (a != b) { printf(__FILE__ ":%d %"f" != %"f"\n", __LINE__, a, b); return false; } |