]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/util-pre.qh
Check features, not compilers
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util-pre.qh
1 #ifndef NOCOMPAT
2     #define COMPAT_NO_MOD_IS_XONOTIC
3 #endif
4
5 #ifndef QCC_SUPPORT_ACCUMULATE
6     #ifdef GMQCC
7         #define QCC_SUPPORT_ACCUMULATE
8     #endif
9 #endif
10
11 #ifndef QCC_SUPPORT_NIL
12     #ifdef GMQCC
13         #define QCC_SUPPORT_NIL
14     #endif
15 #endif
16
17 #ifndef QCC_SUPPORT_INT
18     #define int float
19
20     #define stoi(s) stof(s)
21     #define itos(s) ftos(s)
22 #endif
23
24 #ifndef QCC_SUPPORT_BOOL
25     #define bool float
26
27     // Boolean Constants
28     const bool true     = 1;
29     const bool false    = 0;
30 #endif