]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Still have to parse ahead though
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:41:01 +0000 (15:41 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 30 Nov 2012 14:41:01 +0000 (15:41 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index b9d0dedf6e6e41b77efb1cc5a122b63f19e252d0..984bff9f2e341bfe719cdea51775a79ae4e562c3 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -1266,8 +1266,9 @@ static bool ftepp_preprocess(ftepp_t *ftepp)
             case TOKEN_IDENT:
             case TOKEN_TYPENAME:
                 if (!ftepp->output_on)
-                    break;
-                macro = ftepp_macro_find(ftepp, ftepp_tokval(ftepp));
+                    macro = ftepp_macro_find(ftepp, ftepp_tokval(ftepp));
+                else
+                    macro = NULL;
                 if (!macro) {
                     ftepp_out(ftepp, ftepp_tokval(ftepp), false);
                     ftepp_next(ftepp);