diff options
author | Tomasz Kramkowski <tk@the-tk.com> | 2021-09-21 21:11:19 +0100 |
---|---|---|
committer | Tomasz Kramkowski <tk@the-tk.com> | 2021-09-21 21:11:19 +0100 |
commit | 4bdbc45d66587384698813d6743d84c255e87235 (patch) | |
tree | dfc097e24cb9359d069907978c7b614858860527 | |
parent | 251047496c607548f8200ebf648039fa821e719b (diff) | |
download | pack-4bdbc45d66587384698813d6743d84c255e87235.tar.gz pack-4bdbc45d66587384698813d6743d84c255e87235.tar.xz pack-4bdbc45d66587384698813d6743d84c255e87235.zip |
test.c: minor cleanup
-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; } |