aboutsummaryrefslogtreecommitdiff
path: root/src/ast.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast.c')
-rw-r--r--src/ast.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ast.c b/src/ast.c
index 10f14d0..8da9677 100644
--- a/src/ast.c
+++ b/src/ast.c
@@ -66,6 +66,7 @@ struct ast *gen_ast(enum ast_kind kind,
return n;
}
+#ifdef DEBUG
static void dump(int depth, const char *fmt, ...)
{
va_list args;
@@ -165,6 +166,7 @@ void ast_dump_list(int depth, struct ast *root)
ast_dump(depth, n);
}
}
+#endif /* DEBUG */
int ast_visit(ast_callback_t before, ast_callback_t after, struct ast *n,
void *d)