diff options
Diffstat (limited to 'src/parser.y')
-rw-r--r-- | src/parser.y | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/parser.y b/src/parser.y index 7668cbf2..f70b505d 100644 --- a/src/parser.y +++ b/src/parser.y @@ -101,9 +101,11 @@ static void location_update(struct location *loc, struct location *rhs, int n) %initial-action { location_init(scanner, state, &yylloc); -#if 0 - nft_set_debug(1, scanner); - yydebug = 1; +#ifdef DEBUG + if (debug_level & DEBUG_SCANNER) + nft_set_debug(1, scanner); + if (debug_level & DEBUG_PARSER) + yydebug = 1; #endif } |