fixed zero arg macro parse

This commit is contained in:
bellard
2003-05-18 18:48:33 +00:00
parent e58bda52cd
commit 638e666c42
2 changed files with 7 additions and 1 deletions

2
tcc.c
View File

@ -3812,7 +3812,7 @@ static int macro_subst_tok(TokenString *tok_str,
/* NOTE: empty args are allowed, except if no args */
for(;;) {
/* handle '()' case */
if (!args && tok == ')')
if (!args && !sa && tok == ')')
break;
if (!sa)
error("macro '%s' used with too many args",