summaryrefslogtreecommitdiff
path: root/lib/lua/include
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lua/include')
-rw-r--r--lib/lua/include/luaconf.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/lua/include/luaconf.h b/lib/lua/include/luaconf.h
index 1ada33c..edab3d1 100644
--- a/lib/lua/include/luaconf.h
+++ b/lib/lua/include/luaconf.h
@@ -1,5 +1,5 @@
/*
-** $Id: luaconf.h,v 1.2 2008-02-17 00:35:20 pixel Exp $
+** $Id: luaconf.h,v 1.3 2008-02-18 10:15:45 pixel Exp $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -440,10 +440,10 @@
@* can use.
** CHANGE it if you need lots of (Lua) stack space for your C
** functions. This limit is arbitrary; its only purpose is to stop C
-** functions to consume unlimited stack space.
+** functions to consume unlimited stack space. (must be smaller than
+** -LUA_REGISTRYINDEX)
*/
-#define LUAI_MCS_AUX ((int)(INT_MAX / (4*sizeof(LUA_NUMBER))))
-#define LUAI_MAXCSTACK (LUAI_MCS_AUX > SHRT_MAX ? SHRT_MAX : LUAI_MCS_AUX)
+#define LUAI_MAXCSTACK 8000