]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/util-pre.qh
Merge branch 'master' into terencehill/quickmenu
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util-pre.qh
1 #ifndef UTIL_PRE_H
2 #define UTIL_PRE_H
3
4 #ifndef NOCOMPAT
5     #define COMPAT_NO_MOD_IS_XONOTIC
6 #endif
7
8 #ifndef QCC_SUPPORT_ACCUMULATE
9     #ifdef GMQCC
10         #define QCC_SUPPORT_ACCUMULATE
11     #endif
12 #endif
13
14 #ifndef QCC_SUPPORT_NIL
15     #ifdef GMQCC
16         #define QCC_SUPPORT_NIL
17     #endif
18 #endif
19
20 #ifndef QCC_SUPPORT_INT
21     #define int float
22
23     #define stoi(s) stof(s)
24     #define itos(s) ftos(s)
25 #endif
26
27 #ifndef QCC_SUPPORT_BOOL
28     #define bool float
29
30     // Boolean Constants
31     const int true      = 1;
32     const int false = 0;
33 #endif
34
35 // Transitional aliases
36 [[deprecated("use true")]] [[alias("true")]] const bool TRUE;
37 [[deprecated("use false")]] [[alias("false")]] const bool FALSE;
38
39 #endif