Changed recursion limit to 10,000 (was 200)

This commit is contained in:
2023-06-06 21:02:01 +10:00
parent cf6db57787
commit bb81b8c474
4 changed files with 35 additions and 5 deletions

View File

@@ -1193,7 +1193,7 @@ static void readInterpreterSections(Toy_Interpreter* interpreter);
//also supports identifier & arg1 to be other way around (looseFirstArgument)
static bool execFnCall(Toy_Interpreter* interpreter, bool looseFirstArgument) {
//BUGFIX: depth check - don't drown!
if (interpreter->depth >= 200) {
if (interpreter->depth >= 1000 * 10) {
interpreter->errorOutput("Infinite recursion detected - panicking\n");
interpreter->panic = true;
return false;