aboutsummaryrefslogtreecommitdiff
path: root/tccpp.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2015-01-18 22:00:10 +0100
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2015-01-18 22:00:10 +0100
commitfb6331e0fa34338f4ff8a54d5efabc8a6b46f119 (patch)
tree66947402d0c57ddc2c728343ecd4dfb0dc188fd5 /tccpp.c
parenta6149c6dbb417eee7cdd26d87d1fbd2598339c2f (diff)
downloadtinycc-fb6331e0fa34338f4ff8a54d5efabc8a6b46f119.tar.gz
tinycc-fb6331e0fa34338f4ff8a54d5efabc8a6b46f119.tar.bz2
Fix macro expansion of empty args.
Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
Diffstat (limited to 'tccpp.c')
-rw-r--r--tccpp.c2
1 files changed, 1 insertions, 1 deletions
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);