]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/util-pre.qh
022f687215bfd4ec42af08b3942d466408ee0ecf
[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 stob(s) stof(s)
25     #define itos(s) ftos(s)
26 #endif
27
28 #ifndef QCC_SUPPORT_BOOL
29     #define bool float
30
31     // Boolean Constants
32     const int true      = 1;
33     const int false = 0;
34 #endif
35
36 // Transitional aliases
37 [[deprecated("use true")]] [[alias("true")]] const bool TRUE;
38 [[deprecated("use false")]] [[alias("false")]] const bool FALSE;
39
40 #endif