MOS Source Code
Loading...
Searching...
No Matches
test.h File Reference
#include <stdio.h>
+ Include dependency graph for test.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TEST(x)
 

Macro Definition Documentation

◆ TEST

#define TEST ( x)
Value:
if (!(x)) { \
fprintf(stderr, "\033[31;1mFAILED:\033[22;39m %s:%d %s\n", __FILE__, __LINE__, #x); \
status = 1; \
} else { \
printf("\033[32;1mOK:\033[22;39m %s\n", #x); \
}
#define stderr
Definition mos_stdio.h:32

Definition at line 3 of file test.h.

Referenced by app_main(), check_alltypes(), check_defaults(), check_floats(), main(), main(), main(), test_oneof_1(), test_oneof_2(), and TestIntSize().