MOS Source Code
Loading...
Searching...
No Matches
test.h
Go to the documentation of this file.
1#include <stdio.h>
2
3#define TEST(x) \
4 if (!(x)) { \
5 fprintf(stderr, "\033[31;1mFAILED:\033[22;39m %s:%d %s\n", __FILE__, __LINE__, #x); \
6 status = 1; \
7 } else { \
8 printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
9 }