mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 14:54:07 +10:00
Tweaked depth check, Resolved #23
This commit is contained in:
@@ -997,8 +997,8 @@ static void readInterpreterSections(Interpreter* interpreter);
|
|||||||
|
|
||||||
static bool execFnCall(Interpreter* interpreter, bool looseFirstArgument) {
|
static bool execFnCall(Interpreter* interpreter, bool looseFirstArgument) {
|
||||||
//BUGFIX: depth check - don't drown!
|
//BUGFIX: depth check - don't drown!
|
||||||
if (interpreter->depth >= 1000) {
|
if (interpreter->depth >= 200) {
|
||||||
interpreter->errorOutput("Depth check failed\n");
|
interpreter->errorOutput("Infinite recursion detected - panicking\n");
|
||||||
interpreter->panic = true;
|
interpreter->panic = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user