diff options
author | Jakob Kaivo <jkk@ung.org> | 2019-02-28 21:21:11 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2019-02-28 21:21:11 -0500 |
commit | b61797ea2b3cb0827ee17094784211405e5706c8 (patch) | |
tree | d001e9a791c4c4cda541fe9db6583ac6c8bbb0e8 | |
parent | 76a8382016ff4b9c6b7d2d7912ced47078b37096 (diff) |
ensure void expression is still being evaluated even though discarded
-rw-r--r-- | test.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8,7 +8,7 @@ void test_int_equals_imp(const char*, int, int); #define test_int_equals(expression, expected) test_int_equals_imp(#expression, expression, expected) void test_void_imp(const char*); -#define test_void(expression) test_void_imp(#expression) +#define test_void(expression) ((void)expression), test_void_imp(#expression) void test_bool_imp(const char *, int, int); #define test_false(expression) test_bool_imp(#expression, expression, 0) |