summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
Diffstat (limited to 'input.h')
-rw-r--r--input.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/input.h b/input.h
index 6507053..d386da0 100644
--- a/input.h
+++ b/input.h
@@ -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;