aboutsummaryrefslogtreecommitdiff
path: root/lua.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-02-11 17:16:02 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2008-02-11 17:16:02 -0200
commitdd92af69db1f829cb6b9690026509a803e311ad0 (patch)
tree7c6ff65f03285bf9c861e1cccd625da0710ec9b0 /lua.h
parent015e97389931edf2c399fbd91e890abd048118dd (diff)
downloadlua-dd92af69db1f829cb6b9690026509a803e311ad0.tar.gz
lua-dd92af69db1f829cb6b9690026509a803e311ad0.tar.bz2
lua-dd92af69db1f829cb6b9690026509a803e311ad0.zip
bug: pseudo-indices should be linked to maximum C stack size
Diffstat (limited to 'lua.h')
-rw-r--r--lua.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/lua.h b/lua.h
index 48831e34..a8e89e3e 100644
--- a/lua.h
+++ b/lua.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lua.h,v 1.225 2007/04/17 13:19:53 roberto Exp roberto $ 2** $Id: lua.h,v 1.226 2007/08/07 16:53:40 roberto Exp roberto $
3** Lua - An Extensible Extension Language 3** Lua - An Extensible Extension Language
4** Lua.org, PUC-Rio, Brazil (http://www.lua.org) 4** Lua.org, PUC-Rio, Brazil (http://www.lua.org)
5** See Copyright Notice at the end of this file 5** See Copyright Notice at the end of this file
@@ -33,9 +33,9 @@
33/* 33/*
34** pseudo-indices 34** pseudo-indices
35*/ 35*/
36#define LUA_REGISTRYINDEX (-10000) 36#define LUA_REGISTRYINDEX (-(LUAI_MCS_AUX) - 1)
37#define LUA_ENVIRONINDEX (-10001) 37#define LUA_ENVIRONINDEX (LUA_REGISTRYINDEX - 1)
38#define LUA_GLOBALSINDEX (-10002) 38#define LUA_GLOBALSINDEX (LUA_ENVIRONINDEX - 1)
39#define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) 39#define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i))
40 40
41 41