summaryrefslogtreecommitdiff
path: root/src/runner/runner.h
diff options
context:
space:
mode:
authorA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-26 15:14:45 +0330
committerA404M <ahmadmahmoudiprogrammer@gmail.com>2025-04-26 15:14:45 +0330
commitc85ce38fbb02342d8ef00030d203ab6bcc690f73 (patch)
tree00974fe5bd6611eafa1b44bd226e7b3b75e99c0d /src/runner/runner.h
parent03796c59c8e0d7140c85eeb23dc3341837fe54b4 (diff)
add @isComptime to determine if code is running in comptime or not
Diffstat (limited to 'src/runner/runner.h')
-rw-r--r--src/runner/runner.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/runner/runner.h b/src/runner/runner.h
index 4de6fbe..93b250a 100644
--- a/src/runner/runner.h
+++ b/src/runner/runner.h
@@ -9,11 +9,11 @@ void runnerVariableSetValueWihtoutConstCheck(AstTreeVariable *variable,
bool runAstTree(AstTreeRoots roots);
AstTree *runAstTreeFunction(AstTree *tree, AstTreeFunctionCallParam *arguments,
- size_t arguments_size);
+ size_t arguments_size,bool isComptime);
AstTree *runAstTreeBuiltin(AstTree *tree, AstTreeScope *scope,
AstTreeFunctionCallParam *arguments,
- size_t arguments_size);
+ size_t arguments_size,bool isComptime);
AstTree *runExpression(AstTree *expr, AstTreeScope *scope, bool *shouldRet,
- bool isLeft);
+ bool isLeft,bool isComptime);