From c1dab5f072c319051c16a29a7b7264b7678d0e15 Mon Sep 17 00:00:00 2001 From: TimePath Date: Sat, 31 Jan 2015 15:25:34 +1100 Subject: [PATCH] Bring back `TRUE` and `FALSE` as deprecated aliases --- qcsrc/common/util-pre.qh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/qcsrc/common/util-pre.qh b/qcsrc/common/util-pre.qh index 1537c75fb..ed4ebcf06 100644 --- a/qcsrc/common/util-pre.qh +++ b/qcsrc/common/util-pre.qh @@ -28,7 +28,12 @@ #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 -- 2.39.2