]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/lib/test.qh
Macros: optimize
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / test.qh
1 #ifndef TEST_H
2 #define TEST_H
3
4 #define TEST_Check(cond) \
5         MACRO_BEGIN \
6         { \
7                 if (!(cond)) TEST_Fail( #cond); \
8         } MACRO_END
9
10 void TEST_OK();
11 void TEST_Fail(string cond);
12
13 float TEST_RunAll();
14 float TEST_Run(string test);
15 #endif