diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-26 17:58:11 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-03-26 17:58:11 -0300 |
commit | 064e406f67c0153999a5246deb1d616b06ee9bb0 (patch) | |
tree | f4483ab6ad6d55484829a0d8a27b8afa1768a36e /lua.h | |
parent | 5c87f61e6b1567400d2bd8f452939bb948f16dda (diff) | |
download | lua-064e406f67c0153999a5246deb1d616b06ee9bb0.tar.gz lua-064e406f67c0153999a5246deb1d616b06ee9bb0.tar.bz2 lua-064e406f67c0153999a5246deb1d616b06ee9bb0.zip |
no more fenvs!
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.263 2010/03/19 21:04:17 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.264 2010/03/22 18:28:03 roberto Exp roberto $ |
3 | ** Lua - A Scripting Language | 3 | ** Lua - A Scripting 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 |
@@ -34,8 +34,7 @@ | |||
34 | ** pseudo-indices | 34 | ** pseudo-indices |
35 | */ | 35 | */ |
36 | #define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX | 36 | #define LUA_REGISTRYINDEX LUAI_FIRSTPSEUDOIDX |
37 | #define LUA_ENVIRONINDEX (LUA_REGISTRYINDEX - 1) | 37 | #define lua_upvalueindex(i) (LUA_REGISTRYINDEX - (i)) |
38 | #define lua_upvalueindex(i) (LUA_ENVIRONINDEX - (i)) | ||
39 | 38 | ||
40 | 39 | ||
41 | /* thread status */ | 40 | /* thread status */ |
@@ -212,7 +211,7 @@ LUA_API void (lua_rawgeti) (lua_State *L, int idx, int n); | |||
212 | LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); | 211 | LUA_API void (lua_createtable) (lua_State *L, int narr, int nrec); |
213 | LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); | 212 | LUA_API void *(lua_newuserdata) (lua_State *L, size_t sz); |
214 | LUA_API int (lua_getmetatable) (lua_State *L, int objindex); | 213 | LUA_API int (lua_getmetatable) (lua_State *L, int objindex); |
215 | LUA_API void (lua_getfenv) (lua_State *L, int idx); | 214 | LUA_API void (lua_getenv) (lua_State *L, int idx); |
216 | 215 | ||
217 | 216 | ||
218 | /* | 217 | /* |
@@ -223,7 +222,7 @@ LUA_API void (lua_setfield) (lua_State *L, int idx, const char *k); | |||
223 | LUA_API void (lua_rawset) (lua_State *L, int idx); | 222 | LUA_API void (lua_rawset) (lua_State *L, int idx); |
224 | LUA_API void (lua_rawseti) (lua_State *L, int idx, int n); | 223 | LUA_API void (lua_rawseti) (lua_State *L, int idx, int n); |
225 | LUA_API int (lua_setmetatable) (lua_State *L, int objindex); | 224 | LUA_API int (lua_setmetatable) (lua_State *L, int objindex); |
226 | LUA_API int (lua_setfenv) (lua_State *L, int idx); | 225 | LUA_API void (lua_setenv) (lua_State *L, int idx); |
227 | 226 | ||
228 | 227 | ||
229 | /* | 228 | /* |