1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-11 16:10:27 +00:00

Make JANET_STACK_MAX configurable option.

Also double default value from 8192 to 16384
This commit is contained in:
Calvin Rose 2019-02-27 16:28:43 -05:00
parent 3014a59c3e
commit 7d17159ae4

View File

@ -178,7 +178,9 @@ extern "C" {
/* Define max stack size for stacks before raising a stack overflow error. /* 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 * If this is not defined, fiber stacks can grow without limit (until memory
* runs out) */ * 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. /* Use nanboxed values - uses 8 bytes per value instead of 12 or 16.
* To turn of nanboxing, for debugging purposes or for certain * To turn of nanboxing, for debugging purposes or for certain