diff options
Diffstat (limited to '')
| -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 | /* |
