aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-26 13:26:36 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-26 13:26:36 -0300
commit8b7cfee26b71e66de2cef9f8db9d9e18f5439afd (patch)
tree8590bc5eba700f6c03da032bff8a925de257c726 /ltests.h
parentc1a63c45f8ec5932993c8cec40d3c5ec0743349c (diff)
downloadlua-8b7cfee26b71e66de2cef9f8db9d9e18f5439afd.tar.gz
lua-8b7cfee26b71e66de2cef9f8db9d9e18f5439afd.tar.bz2
lua-8b7cfee26b71e66de2cef9f8db9d9e18f5439afd.zip
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'.
Diffstat (limited to 'ltests.h')
-rw-r--r--ltests.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ltests.h b/ltests.h
index 0ae6afc4..8c8de476 100644
--- a/ltests.h
+++ b/ltests.h
@@ -31,7 +31,7 @@
31 31
32/* compiled with -O0, Lua uses a lot of C stack space... */ 32/* compiled with -O0, Lua uses a lot of C stack space... */
33#undef LUAI_MAXCSTACK 33#undef LUAI_MAXCSTACK
34#define LUAI_MAXCSTACK (400 + CSTACKERR) 34#define LUAI_MAXCSTACK 400
35 35
36/* to avoid warnings, and to make sure value is really unused */ 36/* to avoid warnings, and to make sure value is really unused */
37#define UNUSED(x) (x=0, (void)(x)) 37#define UNUSED(x) (x=0, (void)(x))