aboutsummaryrefslogtreecommitdiff
path: root/ltests.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-18 16:52:22 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-06-18 16:52:22 -0300
commitbe73f72fcc944a8ebae2c60d2ce84139acb011b9 (patch)
tree6ba1154c224a4b7af9e5202b4b52e43706faddb1 /ltests.h
parent3cd9b56ae6002b4ef28d2467abd119606ae625d3 (diff)
downloadlua-be73f72fcc944a8ebae2c60d2ce84139acb011b9.tar.gz
lua-be73f72fcc944a8ebae2c60d2ce84139acb011b9.tar.bz2
lua-be73f72fcc944a8ebae2c60d2ce84139acb011b9.zip
New function 'setCstacklimit'
Added new functions to dynamically set the C-stack limit ('lua_setCstacklimit' in the C-API, 'debug.setCstacklimit' in Lua).
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 a22c98e1..0ae6afc4 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 34#define LUAI_MAXCSTACK (400 + CSTACKERR)
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))