aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp.c b/pp.c
index 7f2731e..bb7b2f4 100644
--- a/pp.c
+++ b/pp.c
@@ -227,7 +227,7 @@ define(void)
m->nparam = params.len / sizeof(m->param[0]);
/* read macro body */
- while (t->kind != TNEWLINE) {
+ while (t->kind != TNEWLINE && t->kind != TEOF) {
if (t->kind == THASHHASH)
error(&t->loc, "'##' operator is not yet implemented");
prev = t->kind;