LUAI_MAXSTACK defined privately

LUAI_MAXSTACK is limited to INT_MAX/2, so can use INT_MAX/2 to define
pseudo-indices (LUA_REGISTRYINDEX) in 'lua.h'. A change in the maximum
stack size does not need to change the Lua-C ABI.
This commit is contained in:
Roberto Ierusalimschy
2025-07-01 10:57:02 -03:00
parent cfce6f4b20
commit 59a1adf194
4 changed files with 17 additions and 18 deletions

View File

@@ -155,7 +155,6 @@ LUA_API void *debug_realloc (void *ud, void *block,
** Reduce maximum stack size to make stack-overflow tests run faster.
** (But value is still large enough to overflow smaller integers.)
*/
#undef LUAI_MAXSTACK
#define LUAI_MAXSTACK 68000