aboutsummaryrefslogtreecommitdiff
path: root/luaconf.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-03-25 14:12:06 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-03-25 14:12:06 -0300
commit0443ad9e288825b6e4441eb11104bcdb4ff4593a (patch)
treee342cb5e94c97f8e024ed89e8de6d44a207992cd /luaconf.h
parentf9b0cf0e2ee35c5444959f77e95f3f07376b9e3e (diff)
downloadlua-0443ad9e288825b6e4441eb11104bcdb4ff4593a.tar.gz
lua-0443ad9e288825b6e4441eb11104bcdb4ff4593a.tar.bz2
lua-0443ad9e288825b6e4441eb11104bcdb4ff4593a.zip
LUAI_MAXCCALLS renamed LUAI_MAXCSTACK
The limit LUAI_MAXCCALLS was renamed LUAI_MAXCSTACK, which better represents its meaning. Moreover, its definition was moved to 'luaconf.h', given its importance now that Lua does not use a "stackless" implementation.
Diffstat (limited to 'luaconf.h')
-rw-r--r--luaconf.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/luaconf.h b/luaconf.h
index 0fc161a4..5c714d4e 100644
--- a/luaconf.h
+++ b/luaconf.h
@@ -28,6 +28,21 @@
28*/ 28*/
29 29
30/* 30/*
31@@ LUAI_MAXCSTACK defines the maximum depth for nested calls and
32** also limits the maximum depth of other recursive algorithms in
33** the implementation, such as syntactic analysis. A value too
34** large may allow the interpreter to crash (C-stack overflow).
35** The default value seems ok for regular machines, but may be
36** too high for restricted hardware.
37** The test file 'cstack.lua' may help finding a good limit.
38** (It will crash with a limit too high.)
39*/
40#if !defined(LUAI_MAXCSTACK)
41#define LUAI_MAXCSTACK 2200
42#endif
43
44
45/*
31@@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats. You 46@@ LUA_32BITS enables Lua with 32-bit integers and 32-bit floats. You
32** can also define LUA_32BITS in the make file, but changing here you 47** can also define LUA_32BITS in the make file, but changing here you
33** ensure that all software connected to Lua will be compiled with the 48** ensure that all software connected to Lua will be compiled with the