diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-01 10:57:02 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2025-07-01 10:57:02 -0300 |
| commit | 59a1adf194efe43741c2bb2005d93d8320a19d14 (patch) | |
| tree | 4b65f62e0b6fa8701608c776b27b65e283dc9d0b /ltests.h | |
| parent | cfce6f4b20afe85ede2182b3df3ab2bfcdb0e692 (diff) | |
| download | lua-59a1adf194efe43741c2bb2005d93d8320a19d14.tar.gz lua-59a1adf194efe43741c2bb2005d93d8320a19d14.tar.bz2 lua-59a1adf194efe43741c2bb2005d93d8320a19d14.zip | |
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.
Diffstat (limited to 'ltests.h')
| -rw-r--r-- | ltests.h | 1 |
1 files changed, 0 insertions, 1 deletions
| @@ -155,7 +155,6 @@ LUA_API void *debug_realloc (void *ud, void *block, | |||
| 155 | ** Reduce maximum stack size to make stack-overflow tests run faster. | 155 | ** Reduce maximum stack size to make stack-overflow tests run faster. |
| 156 | ** (But value is still large enough to overflow smaller integers.) | 156 | ** (But value is still large enough to overflow smaller integers.) |
| 157 | */ | 157 | */ |
| 158 | #undef LUAI_MAXSTACK | ||
| 159 | #define LUAI_MAXSTACK 68000 | 158 | #define LUAI_MAXSTACK 68000 |
| 160 | 159 | ||
| 161 | 160 | ||
