aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tcc.c b/tcc.c
index 6ef7e85..7c24ce6 100644
--- a/tcc.c
+++ b/tcc.c
@@ -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",