]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/lib/bool.qh
Merge branch 'master' into terencehill/lms_updates
[xonotic/xonotic-data.pk3dir.git] / qcsrc / lib / bool.qh
index 5510c171cfcc357487f4cd92182e8b987f88d7ea..c78f717d9e983be74923a5dd8fb5252b73f9b627 100644 (file)
@@ -1,5 +1,4 @@
-#ifndef BOOL_H
-#define BOOL_H
+#pragma once
 
 #ifndef QCC_SUPPORT_BOOL
        // Boolean Constants
@@ -7,13 +6,10 @@
        const int false = 0;
 #endif
 
-// Transitional aliases
-[[deprecated("use true")]][[alias("true")]] const bool TRUE;
-[[deprecated("use false")]][[alias("false")]] const bool FALSE;
-
 #define boolean(value) ((value) != 0)
 
 // get true/false value of a string with multiple different inputs
+ERASEABLE
 float InterpretBoolean(string input)
 {
        switch (strtolower(input))
@@ -31,5 +27,3 @@ float InterpretBoolean(string input)
                default: return boolean(stof(input));
        }
 }
-
-#endif