]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Don't expand macros inside #if 0 at _all_
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:40:19 +0000 (15:40 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:40:19 +0000 (15:40 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index 3700fd39a49878c8742773ac18dc4fcf6e668f82..b9d0dedf6e6e41b77efb1cc5a122b63f19e252d0 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1265,6 +1265,8 @@ static bool ftepp_preprocess(ftepp_t *ftepp)
             case TOKEN_KEYWORD:
             case TOKEN_IDENT:
             case TOKEN_TYPENAME:
+                if (!ftepp->output_on)
+                    break;
                 macro = ftepp_macro_find(ftepp, ftepp_tokval(ftepp));
                 if (!macro) {
                     ftepp_out(ftepp, ftepp_tokval(ftepp), false);