add comments, fix std bugs, add menu

This commit is contained in:
suchmememanyskill
2021-07-23 14:03:49 +02:00
parent 6543a245c4
commit 5bd4dd3a48
10 changed files with 111 additions and 19 deletions

View File

@@ -69,7 +69,9 @@ Variable_t* opToVar(Operator_t* op, Callback_SetVar_t *setCallback, u8 possibleC
}
else if (op->variable.staticVariableType == 3) {
var = copyVariableToPtr(newFunctionVariable(createFunctionClass((Function_t) { 0 }, op->variable.staticFunction)));
var->function.len = op->variable.staticFunctionLen;
var->reference = 1;
if (!strcmp(var->function.builtInPtr->name,"while")) {
var->function.firstArgAsFunction = 1;