aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2020-03-16 02:09:59 -0700
committerMichael Forney <mforney@mforney.org>2020-03-17 15:22:51 -0700
commitbad98e94caf37db71f8114bdb8562a7caa4fb256 (patch)
treee238ce199becccaf9f940685ba8cb27c2c74737d /main.c
parent19b816b032dfc01a49f7f86ae7c411a0f15fd2bc (diff)
pp: Add support for macro definition and expansion
The token pasting operator `##` still needs to be implemented.
Diffstat (limited to 'main.c')
-rw-r--r--main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main.c b/main.c
index a147c28..004df85 100644
--- a/main.c
+++ b/main.c
@@ -50,6 +50,7 @@ main(int argc, char *argv[])
ppinit();
if (pponly) {
+ ppflags |= PPNEWLINE;
while (tok.kind != TEOF) {
tokenprint(&tok);
next();