From be73f72fcc944a8ebae2c60d2ce84139acb011b9 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 18 Jun 2019 16:52:22 -0300 Subject: New function 'setCstacklimit' Added new functions to dynamically set the C-stack limit ('lua_setCstacklimit' in the C-API, 'debug.setCstacklimit' in Lua). --- ltests.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ltests.h') diff --git a/ltests.h b/ltests.h index a22c98e1..0ae6afc4 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 +#define LUAI_MAXCSTACK (400 + CSTACKERR) /* to avoid warnings, and to make sure value is really unused */ #define UNUSED(x) (x=0, (void)(x)) -- cgit v1.2.3-55-g6feb