diff options
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1,6 +1,14 @@ #ifndef DEF_INPUTH #define DEF_INPUTH +/* simple macro to check a result against an expected value */ +#define CHECK(actual, expected) {\ + if(actual == expected)\ + printf("%d ok\n", actual);\ + else\ + printf("%d ko, expected %d\n", actual, expected);\ +} + struct input_int { size_t line_count; int* lines; |