aboutsummaryrefslogtreecommitdiff
path: root/llimits.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-09-23 10:18:01 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2020-10-12 12:29:09 -0300
commit287b302acb8d925178e9edb800f0a8d18c7d35f6 (patch)
treebd662481ea995dc8c050324d553146e870434d93 /llimits.h
parent5d8ce05b3f6fad79e37ed21c1076e47a322472c6 (diff)
downloadlua-287b302acb8d925178e9edb800f0a8d18c7d35f6.tar.gz
lua-287b302acb8d925178e9edb800f0a8d18c7d35f6.tar.bz2
lua-287b302acb8d925178e9edb800f0a8d18c7d35f6.zip
Revision of stackless implementation
- more organized handling of 'nCcalls' - comments - deprecation of 'setcstacklimit'
Diffstat (limited to 'llimits.h')
-rw-r--r--llimits.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/llimits.h b/llimits.h
index 48c97f95..d6866d7c 100644
--- a/llimits.h
+++ b/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*/