]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - qcsrc/common/util-pre.qh
Make TRUE and FALSE booleans
[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_INT
6 #define int float
7
8 #define stoi(s) stof(s)
9 #define itos(s) ftos(s)
10 #endif
11
12 #ifndef QCC_SUPPORT_BOOL
13 #define bool float
14
15 // Boolean Constants
16 const bool true         = 1;
17 const bool false        = 0;
18 const bool TRUE         = 1;
19 const bool FALSE        = 0;
20 #endif