Fix the friendly segfault (it didnt do anything lol)

This commit is contained in:
2025-05-20 19:01:55 +10:00
parent a0b4caa6e8
commit fe434787e5

View File

@@ -341,9 +341,14 @@ optional<Token> Interpreter::interpret(vector<Token> tokenList, bool isFunction)
}
// Execute the instruction
log.debug("Length of line is " + to_string(lengthOfLine));
if (isFunction) {
optional<Token> returnTokenOptional = executeCode(currentInstruction, true);
if (returnTokenOptional.has_value());
}
executeCode(currentInstruction, isFunction);
lengthOfLine = 0;
}
return {};
}
optional<Token> Interpreter::executeCode(vector<Token> tokens, bool isFunction) {