From 638e666c42bcc3f65499baa0660d558a2b40ad8f Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 18 May 2003 18:48:33 +0000 Subject: fixed zero arg macro parse --- tcc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tcc.c') 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", -- cgit v1.3.1