diff --git a/source/interpreter.c b/source/interpreter.c index 8cbeb8d..dd2d61c 100644 --- a/source/interpreter.c +++ b/source/interpreter.c @@ -997,8 +997,8 @@ static void readInterpreterSections(Interpreter* interpreter); static bool execFnCall(Interpreter* interpreter, bool looseFirstArgument) { //BUGFIX: depth check - don't drown! - if (interpreter->depth >= 1000) { - interpreter->errorOutput("Depth check failed\n"); + if (interpreter->depth >= 200) { + interpreter->errorOutput("Infinite recursion detected - panicking\n"); interpreter->panic = true; return false; }