Added dist target, lowered recursion depth limit

This commit is contained in:
2023-06-07 14:58:51 +10:00
parent bfd506f497
commit 733df87c08
9 changed files with 11 additions and 85 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 >= 1000 * 10) {
if (interpreter->depth >= 1000) {
interpreter->errorOutput("Infinite recursion detected - panicking\n");
interpreter->panic = true;
return false;