aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-06 03:19:06 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-06-06 03:19:06 +0330
commit6e86f7b9a3ca057640bcfaa4ea72872dcd8d3af4 (patch)
treef0a854b8f0860a2a29de95b943e563fb6a2671a3 /src/main.c
parentc64d8217a598364fcb48ed965edc7a138f2f6750 (diff)
fix when you disable statistics
some more clean up
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c7
1 files changed, 6 insertions, 1 deletions
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;
}