From 39101b00a2e3666d8a65df44eaf6f44609df551b Mon Sep 17 00:00:00 2001 From: Anony Moose Date: Sat, 24 Aug 2013 20:52:20 +0000 Subject: Fixed style in several macros. --- testing/misc_tools.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'testing/misc_tools.h') diff --git a/testing/misc_tools.h b/testing/misc_tools.h index 006ddbd9..9a3d5b40 100644 --- a/testing/misc_tools.h +++ b/testing/misc_tools.h @@ -39,26 +39,26 @@ unsigned char *hex_string_to_bin(char hex_string[]); #include #define DEBUG_PRINT(str, ...) do { \ - char msg[1000]; \ - sprintf(msg, "%s(): line %d (file %s): %s%%c\n", __FUNCTION__, __LINE__, __FILE__, str); \ - fprintf(stderr, msg, __VA_ARGS__); \ - } while (0) + char msg[1000]; \ + sprintf(msg, "%s(): line %d (file %s): %s%%c\n", __FUNCTION__, __LINE__, __FILE__, str); \ + fprintf(stderr, msg, __VA_ARGS__); \ +} while (0) #define WARNING(...) do { \ - fprintf(stderr, "warning in "); \ - DEBUG_PRINT(__VA_ARGS__, ' '); \ - } while (0) + fprintf(stderr, "warning in "); \ + DEBUG_PRINT(__VA_ARGS__, ' '); \ +} while (0) #define INFO(...) do { \ - DEBUG_PRINT(__VA_ARGS__, ' '); \ - } while (0) + DEBUG_PRINT(__VA_ARGS__, ' '); \ +} while (0) #undef ERROR #define ERROR(exit_status, ...) do { \ - fprintf(stderr, "error in "); \ - DEBUG_PRINT(__VA_ARGS__, ' '); \ - exit(exit_status); \ - } while (0) + fprintf(stderr, "error in "); \ + DEBUG_PRINT(__VA_ARGS__, ' '); \ + exit(exit_status); \ +} while (0) #else #define WARNING(...) #define INFO(...) -- cgit v1.2.3