coding style

This commit is contained in:
Markus Teich 2016-11-29 14:43:08 +01:00
parent d775547d04
commit df34510466

5
test.h
View File

@ -27,7 +27,10 @@
int tests_run = 0; int tests_run = 0;
int ret = 0; int ret = 0;
#define CHECK(cond, message) do { if (!(cond)) { fputs (message, stderr); fputc ('\n', stderr); return 0; } } while (0) #define CHECK(cond, message) do { if (!(cond)) { fputs (message, stderr); fputc ( \
'\n', \
stderr); return 0; \
} } while (0)
#define RUN(test) do { if (!test ()) { ret = 1; } } while (0) #define RUN(test) do { if (!test ()) { ret = 1; } } while (0)
#endif // ifndef _BRANDT_TEST_H #endif // ifndef _BRANDT_TEST_H