summaryrefslogtreecommitdiff
path: root/src/luaconf.h
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2008-01-17 12:00:00 +0000
committerrepogen <>2008-01-17 12:00:00 +0000
commitb2874e1bcdc4d4a56d8a232a88d5e17c6a9826f5 (patch)
treec173f097145da6d8df8e8fea09b6ec6bba8c5476 /src/luaconf.h
parentf3572f5f7e364810f6ac5f99e0eced99c4722418 (diff)
downloadlua-github-b2874e1bcdc4d4a56d8a232a88d5e17c6a9826f5.tar.gz
Lua 5.1.3-rc15.1.3-rc1
Diffstat (limited to 'src/luaconf.h')
-rw-r--r--src/luaconf.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/luaconf.h b/src/luaconf.h
index 8be8338f..c9698b0d 100644
--- a/src/luaconf.h
+++ b/src/luaconf.h
@@ -1,5 +1,5 @@
/*
-** $Id: luaconf.h,v 1.82a 2006/04/10 18:27:23 roberto Exp $
+** $Id: luaconf.h,v 1.82.1.5 2008/01/17 14:04:20 roberto Exp $
** Configuration file for Lua
** See Copyright Notice in lua.h
*/
@@ -442,7 +442,8 @@
** functions. This limit is arbitrary; its only purpose is to stop C
** functions to consume unlimited stack space.
*/
-#define LUAI_MAXCSTACK 2048
+#define LUAI_MCS_AUX ((int)(INT_MAX / (4*sizeof(LUA_NUMBER))))
+#define LUAI_MAXCSTACK (LUAI_MCS_AUX > SHRT_MAX ? SHRT_MAX : LUAI_MCS_AUX)