From 79611950182eb09ca3cc3c530d40173696c614fd Mon Sep 17 00:00:00 2001 From: Maxwell Jeffress Date: Sat, 30 Aug 2025 16:28:27 +1000 Subject: [PATCH] Little thing to catch rouge functions --- src/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.cpp b/src/main.cpp index 9b12bda..80b7e6a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -2073,6 +2073,7 @@ Literal exec(vector in, bool executingFunction) { break; } } + if (executingFunction) error("Reached end of function and no value returned"); Literal retLiteral; return retLiteral; }