From 7d17159ae4f9540ad345da9e4a59ec19469434cc Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Wed, 27 Feb 2019 16:28:43 -0500 Subject: [PATCH] Make JANET_STACK_MAX configurable option. Also double default value from 8192 to 16384 --- src/include/janet.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/include/janet.h b/src/include/janet.h index 3cd70eaf..3091cc04 100644 --- a/src/include/janet.h +++ b/src/include/janet.h @@ -178,7 +178,9 @@ extern "C" { /* Define max stack size for stacks before raising a stack overflow error. * If this is not defined, fiber stacks can grow without limit (until memory * runs out) */ -#define JANET_STACK_MAX 8192 +#ifndef JANET_STACK_MAX +#define JANET_STACK_MAX 16384 +#endif /* Use nanboxed values - uses 8 bytes per value instead of 12 or 16. * To turn of nanboxing, for debugging purposes or for certain