1 #include <stdio.h> 2 3 #define COMMENT(x) printf("\n----" x "----\n"); 4 #define STR(x) #x 5 #define STR2(x) STR(x) 6 #define TEST(x) \ 7 if (!(x)) { \ 8 fprintf(stderr, "\033[31;1mFAILED:\033[22;39m " __FILE__ ":" STR2(__LINE__) " " #x "\n"); \ 9 status = 1; \ 10 } else { \ 11 printf("\033[32;1mOK:\033[22;39m " #x "\n"); \ 12 } 13 14 15