]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
make ifeq/ifneq work with spaces
authorRudolf Polzer <divverent@xonotic.org>
Fri, 14 Sep 2012 11:41:00 +0000 (13:41 +0200)
committerRudolf Polzer <divverent@xonotic.org>
Fri, 14 Sep 2012 11:41:00 +0000 (13:41 +0200)
cpp.cfg

diff --git a/cpp.cfg b/cpp.cfg
index a44161dd74f771753b1fc1ebe0e8ff472095344b..3a190533eabb78cb94946cd874dee38d808b0f92 100644 (file)
--- a/cpp.cfg
+++ b/cpp.cfg
@@ -4,8 +4,8 @@ alias _do          "$*"
 set _ifstack       ""
 alias #            "$_ifstack $*"
 
-alias #ifeq        "set _ifnew_$1 _dont; set _ifnew_$2 _do; _ifeq_2 _ifnew_$1"
-alias #ifneq       "set _ifnew_$1 _do; set _ifnew_$2 _dont; _ifeq_2 _ifnew_$1"
+alias #ifeq        "set \"_ifnew_$1\" _dont; set \"_ifnew_$2\" _do; _ifeq_2 \"_ifnew_$1\""
+alias #ifneq       "set \"_ifnew_$1\" _do; set \"_ifnew_$2\" _dont; _ifeq_2 \"_ifnew_$1\""
 alias _ifeq_2      "set _ifstack \"${$1} $_ifstack\""
 alias #else        "_else_2$_ifstack"
 alias _else_2_do   "set _ifstack \"_dont ${* q?}\""