Fix the friendly segfault (it didnt do anything lol)
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user