forked from ground/ground
Little thing to catch rouge functions
This commit is contained in:
@@ -2073,6 +2073,7 @@ Literal exec(vector<Instruction> in, bool executingFunction) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (executingFunction) error("Reached end of function and no value returned");
|
||||||
Literal retLiteral;
|
Literal retLiteral;
|
||||||
return retLiteral;
|
return retLiteral;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user