]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/util-pre.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util-pre.qh
1 #ifndef UTIL_PRE_H
2 #define UTIL_PRE_H
3
4 #if defined(CSQC)
5 #elif defined(MENUQC)
6 #elif defined(SVQC)
7 #endif
8
9 #ifndef NOCOMPAT
10     #define COMPAT_NO_MOD_IS_XONOTIC
11 #endif
12
13 #ifndef QCC_SUPPORT_ACCUMULATE
14     #ifdef GMQCC
15         #define QCC_SUPPORT_ACCUMULATE
16     #endif
17 #endif
18
19 #ifndef QCC_SUPPORT_NIL
20     #ifdef GMQCC
21         #define QCC_SUPPORT_NIL
22     #endif
23 #endif
24
25 #ifndef QCC_SUPPORT_INT
26     #define int float
27
28     #define stoi(s) stof(s)
29     #define itos(s) ftos(s)
30 #endif
31
32 #ifndef QCC_SUPPORT_BOOL
33     #define bool float
34
35     // Boolean Constants
36     const bool true     = 1;
37     const bool false    = 0;
38 #endif
39 #endif