Little thing to catch rouge functions

This commit is contained in:
2025-08-30 16:28:27 +10:00
parent e73e5a7ebc
commit 7961195018

View File

@@ -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;
} }