]> git.xonotic.org Git - xonotic/gmqcc.git/commitdiff
Also allow empty-parameter-list macros
authorWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 16 Nov 2012 19:41:20 +0000 (20:41 +0100)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Fri, 16 Nov 2012 19:41:20 +0000 (20:41 +0100)
ftepp.c

diff --git a/ftepp.c b/ftepp.c
index 15702b0665daa8790ecf136f5ac9b5dd668a5c6d..04e41bbcff7b2d9a376744b27ea32208bf967a58 100644 (file)
--- a/ftepp.c
+++ b/ftepp.c
@@ -184,6 +184,8 @@ static bool ftepp_define_params(ftepp_t *ftepp, ppmacro *macro)
         ftepp_next(ftepp);
         if (!ftepp_skipspace(ftepp))
             return false;
+        if (ftepp->token == ')')
+            break;
         switch (ftepp->token) {
             case TOKEN_IDENT:
             case TOKEN_TYPENAME: