Added DEBUG macro #ifdef

This commit is contained in:
Dante Falzone
2022-03-11 18:49:46 -06:00
committed by GitHub
parent 195cc01929
commit ac465200d9
+3 -2
View File
@@ -491,7 +491,8 @@ static inline TokenKind current(Context *ctx)
return current_token(ctx)->kind; return current_token(ctx)->kind;
} }
#if 0 // Compile with -DDEBUG to get debugging messages printed to stderr.
#ifdef DEBUG
#include <stdio.h> #include <stdio.h>
@@ -2103,4 +2104,4 @@ static Node *parse_dowhile_statement(Context *ctx)
} }
return (Node*) dowhl; return (Node*) dowhl;
} }