From fb6331e0fa34338f4ff8a54d5efabc8a6b46f119 Mon Sep 17 00:00:00 2001 From: Reimar Döffinger Date: Sun, 18 Jan 2015 22:00:10 +0100 Subject: Fix macro expansion of empty args. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Reimar Döffinger --- tccpp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tccpp.c') diff --git a/tccpp.c b/tccpp.c index 4c7cf80..bc2d4a2 100644 --- a/tccpp.c +++ b/tccpp.c @@ -2640,7 +2640,7 @@ static int *macro_arg_subst(Sym **nested_list, const int *macro_str, Sym *args) tok_str_add2(&str, t1, &cval); } } - } else { + } else if (*st != TOK_PLCHLDR) { /* NOTE: the stream cannot be read when macro substituing an argument */ macro_subst(&str, nested_list, st, NULL); -- cgit v1.3.1