diff options
Diffstat (limited to 'src/compiler/lexer.c')
-rw-r--r-- | src/compiler/lexer.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/lexer.c b/src/compiler/lexer.c index fa96203..8cf0cc3 100644 --- a/src/compiler/lexer.c +++ b/src/compiler/lexer.c @@ -180,6 +180,7 @@ bool lexerNodeArrayIsError(LexerNodeArray array) { return LEXER_NODE_ARRAY_ERROR.size == array.size; } +#ifdef PRINT_COMPILE_TREE void lexerNodeArrayPrint(LexerNodeArray array) { for (size_t i = 0; i < array.size; ++i) { LexerNode node = array.data[i]; @@ -187,6 +188,7 @@ void lexerNodeArrayPrint(LexerNodeArray array) { node.str_begin, LEXER_TOKEN_STRINGS[node.token]); } } +#endif void lexerNodeArrayDestroy(LexerNodeArray array) { free(array.data); } |