diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 14:26:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2009-07-15 14:26:14 -0300 |
commit | f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c (patch) | |
tree | dd9d1f8f3fb8c69f7617fe5688d7b1178bb7190e /lua.h | |
parent | abb85fc059a5d6427b9dc36edee1619f2c7a1da8 (diff) | |
download | lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.tar.gz lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.tar.bz2 lua-f76f4cb79d84af4a7be9e0d75553bbe05a3ae90c.zip |
new way to control stack overflow, controling only total size of the stack
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.239 2009/06/17 17:49:44 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.240 2009/06/18 18:59:18 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,7 +33,7 @@ | |||
33 | /* | 33 | /* |
34 | ** pseudo-indices | 34 | ** pseudo-indices |
35 | */ | 35 | */ |
36 | #define LUA_REGISTRYINDEX (-(LUAI_MCS_AUX) - 1) | 36 | #define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX |
37 | #define LUA_ENVIRONINDEX (LUA_REGISTRYINDEX - 1) | 37 | #define LUA_ENVIRONINDEX (LUA_REGISTRYINDEX - 1) |
38 | #define LUA_GLOBALSINDEX (LUA_ENVIRONINDEX - 1) | 38 | #define LUA_GLOBALSINDEX (LUA_ENVIRONINDEX - 1) |
39 | #define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) | 39 | #define lua_upvalueindex(i) (LUA_GLOBALSINDEX-(i)) |