From 6e86f7b9a3ca057640bcfaa4ea72872dcd8d3af4 Mon Sep 17 00:00:00 2001 From: A404M Date: Fri, 6 Jun 2025 03:19:06 +0330 Subject: fix when you disable statistics some more clean up --- src/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index afede73..e492347 100644 --- a/src/main.c +++ b/src/main.c @@ -19,7 +19,12 @@ static int run(const char *filePath) { Time totalTime = {0}; start = get_time(); #endif - AstTreeRoots astTrees = makeAstTree(filePath, &lexTime, &parseTime); + AstTreeRoots astTrees = makeAstTree(filePath +#ifdef PRINT_STATISTICS + , + &lexTime, &parseTime +#endif + ); if (astTrees.size == AST_TREE_ROOTS_ERROR.size) { return 1; } -- cgit v1.2.3