5 #define COMPAT_NO_MOD_IS_XONOTIC
8 #ifndef QCC_SUPPORT_ACCUMULATE
10 #define QCC_SUPPORT_ACCUMULATE
14 #ifndef QCC_SUPPORT_NIL
16 #define QCC_SUPPORT_NIL
20 #ifndef QCC_SUPPORT_INT
23 #define stoi(s) stof(s)
24 #define stob(s) stof(s)
25 #define itos(i) ftos(i)
27 #define stoi(s) ((int) stof(s))
28 #define stob(s) ((bool) stof(s))
29 #define itos(i) ftos(i)
32 #ifndef QCC_SUPPORT_BOOL
40 #ifndef QCC_SUPPORT_ENTITYCLASS
41 #define entityclass(name) typedef entity name
43 #define new(class) spawn()
45 #define entityclass(name) entityclass name {}
46 #define class(name) [[class(name)]]
47 #define new(class) ((class) spawn())
50 // Transitional aliases
51 [[deprecated("use true")]] [[alias("true")]] const bool TRUE;
52 [[deprecated("use false")]] [[alias("false")]] const bool FALSE;
54 #define BIT(n) (1 << (n))
55 #define BITSET(var, mask, flag) (flag ? (var) | (mask) : (var) &~ (mask))