From ac465200d9a8b6f38fa8fe5a1ebe47f75936ab39 Mon Sep 17 00:00:00 2001 From: Dante Falzone <48266179+DanteFalzone0@users.noreply.github.com> Date: Fri, 11 Mar 2022 18:49:46 -0600 Subject: [PATCH] Added DEBUG macro #ifdef --- src/compiler/parse.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/compiler/parse.c b/src/compiler/parse.c index e36a0e5..bd9de4a 100644 --- a/src/compiler/parse.c +++ b/src/compiler/parse.c @@ -491,7 +491,8 @@ static inline TokenKind current(Context *ctx) return current_token(ctx)->kind; } -#if 0 +// Compile with -DDEBUG to get debugging messages printed to stderr. +#ifdef DEBUG #include @@ -2103,4 +2104,4 @@ static Node *parse_dowhile_statement(Context *ctx) } return (Node*) dowhl; -} \ No newline at end of file +}