summaryrefslogtreecommitdiff
path: root/testing/misc_tools.h
diff options
context:
space:
mode:
authorKonstantin Kowalski <kostyakow42@gmail.com>2013-08-09 15:35:19 +0000
committerKonstantin Kowalski <kostyakow42@gmail.com>2013-08-09 15:35:19 +0000
commitfdb3e194ba9f9c4b073edb324df5f177315ce6bf (patch)
tree6d12f9a769a159537614b126a4744c7ebb534171 /testing/misc_tools.h
parent8542b5bac85ec068deac239d46954fa010128cd0 (diff)
Added INFO() debugging macro.
Diffstat (limited to 'testing/misc_tools.h')
-rw-r--r--testing/misc_tools.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/misc_tools.h b/testing/misc_tools.h
index 1abdb809..e50a8f7f 100644
--- a/testing/misc_tools.h
+++ b/testing/misc_tools.h
@@ -51,6 +51,10 @@ unsigned char * hex_string_to_bin(char hex_string[]);
51 DEBUG_PRINT(__VA_ARGS__, ' '); \ 51 DEBUG_PRINT(__VA_ARGS__, ' '); \
52 } while (0) 52 } while (0)
53 53
54 #define INFO(...) do { \
55 DEBUG_PRINT(__VA_ARGS__, ' '); \
56 } while (0)
57
54 #undef ERROR 58 #undef ERROR
55 #define ERROR(exit_status, ...) do { \ 59 #define ERROR(exit_status, ...) do { \
56 fprintf(stderr, "error in "); \ 60 fprintf(stderr, "error in "); \
@@ -59,6 +63,7 @@ unsigned char * hex_string_to_bin(char hex_string[]);
59 } while (0) 63 } while (0)
60#else 64#else
61 #define WARNING(...) 65 #define WARNING(...)
66 #define INFO(...)
62 #undef ERROR 67 #undef ERROR
63 #define ERROR(...) 68 #define ERROR(...)
64#endif // DEBUG 69#endif // DEBUG