From 8b7cfee26b71e66de2cef9f8db9d9e18f5439afd Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 26 Jun 2019 13:26:36 -0300 Subject: Small changes around C-stack limit - Better documentation in 'testes/cstack.lua' about using 'debug.setCstacklimit' to find a good limit. - Constant LUAI_MAXCSTACK gets added CSTACKERR (extra stack for error handling), so that it is compatible with the argument to 'debug.setCstacklimit'. --- ltests.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index 0ae6afc4..8c8de476 100644 --- a/ltests.h +++ b/ltests.h @@ -31,7 +31,7 @@ /* compiled with -O0, Lua uses a lot of C stack space... */ #undef LUAI_MAXCSTACK -#define LUAI_MAXCSTACK (400 + CSTACKERR) +#define LUAI_MAXCSTACK 400 /* to avoid warnings, and to make sure value is really unused */ #define UNUSED(x) (x=0, (void)(x)) -- cgit v1.2.3-55-g6feb