aboutsummaryrefslogtreecommitdiff
path: root/src/lua/llimits.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/llimits.h')
-rw-r--r--src/lua/llimits.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/lua/llimits.h b/src/lua/llimits.h
index 48c97f9..a76c13e 100644
--- a/src/lua/llimits.h
+++ b/src/lua/llimits.h
@@ -235,6 +235,17 @@ typedef l_uint32 Instruction;
235 235
236 236
237/* 237/*
238** Maximum depth for nested C calls, syntactical nested non-terminals,
239** and other features implemented through recursion in C. (Value must
240** fit in a 16-bit unsigned integer. It must also be compatible with
241** the size of the C stack.)
242*/
243#if !defined(LUAI_MAXCCALLS)
244#define LUAI_MAXCCALLS 200
245#endif
246
247
248/*
238** macros that are executed whenever program enters the Lua core 249** macros that are executed whenever program enters the Lua core
239** ('lua_lock') and leaves the core ('lua_unlock') 250** ('lua_lock') and leaves the core ('lua_unlock')
240*/ 251*/
@@ -344,7 +355,7 @@ typedef l_uint32 Instruction;
344#else 355#else
345/* realloc stack keeping its size */ 356/* realloc stack keeping its size */
346#define condmovestack(L,pre,pos) \ 357#define condmovestack(L,pre,pos) \
347 { int sz_ = (L)->stacksize; pre; luaD_reallocstack((L), sz_, 0); pos; } 358 { int sz_ = stacksize(L); pre; luaD_reallocstack((L), sz_, 0); pos; }
348#endif 359#endif
349 360
350#if !defined(HARDMEMTESTS) 361#if !defined(HARDMEMTESTS)