]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/util-pre.qh
#include this
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / util-pre.qh
index 8f36914c167bca6a1a6fe68a0587b6e521f759f5..d8bd8636ab29e3fb39f02b96a147571fd642761e 100644 (file)
@@ -1,19 +1,39 @@
+#ifndef UTIL_PRE_H
+#define UTIL_PRE_H
+
+#if defined(CSQC)
+#elif defined(MENUQC)
+#elif defined(SVQC)
+#endif
+
 #ifndef NOCOMPAT
-# define COMPAT_NO_MOD_IS_XONOTIC
+    #define COMPAT_NO_MOD_IS_XONOTIC
+#endif
+
+#ifndef QCC_SUPPORT_ACCUMULATE
+    #ifdef GMQCC
+        #define QCC_SUPPORT_ACCUMULATE
+    #endif
+#endif
+
+#ifndef QCC_SUPPORT_NIL
+    #ifdef GMQCC
+        #define QCC_SUPPORT_NIL
+    #endif
 #endif
 
 #ifndef QCC_SUPPORT_INT
-#define int float
+    #define int float
+
+    #define stoi(s) stof(s)
+    #define itos(s) ftos(s)
 #endif
 
 #ifndef QCC_SUPPORT_BOOL
-#define bool float
-
-// Boolean Constants
-const float true       = 1;
-const float false      = 0;
-const float TRUE       = 1;
-const float FALSE      = 0;
+    #define bool float
 
-#define stoi(s) stof(s)
+    // Boolean Constants
+    const bool true    = 1;
+    const bool false   = 0;
 #endif
+#endif
\ No newline at end of file