From aa3c988854bde354efd1dbcb3d85efcc56ad9cd2 Mon Sep 17 00:00:00 2001 From: Tucker Evans Date: Sun, 29 Sep 2019 21:28:41 -0400 Subject: Fix print tree only if DEBUG is set --- pc.y | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pc.y b/pc.y index c55074e..1f9e9f1 100644 --- a/pc.y +++ b/pc.y @@ -97,7 +97,9 @@ program '.' { set_ret_type($9); +#ifdef DEBUG print_tree($9); +#endif free_tree($9); free_tree($4); #ifdef DEBUG @@ -171,7 +173,9 @@ sub_prog_declaration compound_statement { set_ret_type($4); +#ifdef DEBUG print_tree($4); +#endif free_tree($4); #ifdef DEBUG print_scope(cur_scope); -- cgit v1.1