aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-27 14:32:29 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-12-27 14:32:29 -0200
commitba7da13ec5938f978c37d63aa40a3e340b301f79 (patch)
treec1f22403954f6e0c6d17c8495c11509103313c9a /ltests.h
parentda37ac9c7894186a0e2e0e6f1f5f00b825fd1555 (diff)
downloadlua-ba7da13ec5938f978c37d63aa40a3e340b301f79.tar.gz
lua-ba7da13ec5938f978c37d63aa40a3e340b301f79.tar.bz2
lua-ba7da13ec5938f978c37d63aa40a3e340b301f79.zip
Changes in the control of C-stack overflow
* unification of the 'nny' and 'nCcalls' counters; * external C functions ('lua_CFunction') count more "slots" in the C stack (to allow for their possible use of buffers) * added a new test script specific for C-stack overflows. (Most of those tests were already present, but concentrating them in a single script easies the task of checking whether 'LUAI_MAXCCALLS' is adequate in a system.)
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 9d409c8d..997e1c4b 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_MAXCCALLS 33#undef LUAI_MAXCCALLS
34#define LUAI_MAXCCALLS 200 34#define LUAI_MAXCCALLS 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))