]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Bring back `TRUE` and `FALSE` as deprecated aliases
authorTimePath <andrew.hardaker1995@gmail.com>
Sat, 31 Jan 2015 04:25:34 +0000 (15:25 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Sat, 31 Jan 2015 04:25:34 +0000 (15:25 +1100)
qcsrc/common/util-pre.qh

index 1537c75fb5a16eef9112909da8349985f774324d..ed4ebcf0615d26dfa52ea907ea96a190b5f6a6f5 100644 (file)
     #define bool float
 
     // Boolean Constants
-    const bool true    = 1;
-    const bool false   = 0;
+    const int true     = 1;
+    const int false = 0;
 #endif
+
+// Transitional aliases
+[[deprecated("use true")]] [[alias("true")]] const bool TRUE;
+[[deprecated("use false")]] [[alias("false")]] const bool FALSE;
+
 #endif