From c85ce38fbb02342d8ef00030d203ab6bcc690f73 Mon Sep 17 00:00:00 2001 From: A404M Date: Sat, 26 Apr 2025 15:14:45 +0330 Subject: add @isComptime to determine if code is running in comptime or not --- src/runner/runner.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/runner/runner.h') 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); -- cgit v1.2.3