diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-10 09:57:55 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2003-10-10 09:57:55 -0300 |
commit | 533737f26e3f8036d7978e09427ea5ff75aec9df (patch) | |
tree | 003004a423cf20bc4e1493918760494b0d694f93 /lua.h | |
parent | a41d60e1d1f3a954648884d4ab7fb7e9ccdd52d6 (diff) | |
download | lua-533737f26e3f8036d7978e09427ea5ff75aec9df.tar.gz lua-533737f26e3f8036d7978e09427ea5ff75aec9df.tar.bz2 lua-533737f26e3f8036d7978e09427ea5ff75aec9df.zip |
new functions `lua_getfield' and `lua_setfield'
Diffstat (limited to 'lua.h')
-rw-r--r-- | lua.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lua.h,v 1.179 2003/10/02 20:31:17 roberto Exp roberto $ | 2 | ** $Id: lua.h,v 1.180 2003/10/07 20:13:41 roberto Exp roberto $ |
3 | ** Lua - An Extensible Extension Language | 3 | ** Lua - An Extensible Extension Language |
4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil | 4 | ** Tecgraf: Computer Graphics Technology Group, PUC-Rio, Brazil |
5 | ** http://www.lua.org mailto:info@lua.org | 5 | ** http://www.lua.org mailto:info@lua.org |
@@ -182,6 +182,7 @@ LUA_API void lua_pushlightuserdata (lua_State *L, void *p); | |||
182 | ** get functions (Lua -> stack) | 182 | ** get functions (Lua -> stack) |
183 | */ | 183 | */ |
184 | LUA_API void lua_gettable (lua_State *L, int idx); | 184 | LUA_API void lua_gettable (lua_State *L, int idx); |
185 | LUA_API void lua_getfield (lua_State *L, int idx, const char *k); | ||
185 | LUA_API void lua_rawget (lua_State *L, int idx); | 186 | LUA_API void lua_rawget (lua_State *L, int idx); |
186 | LUA_API void lua_rawgeti (lua_State *L, int idx, int n); | 187 | LUA_API void lua_rawgeti (lua_State *L, int idx, int n); |
187 | LUA_API void lua_newtable (lua_State *L); | 188 | LUA_API void lua_newtable (lua_State *L); |
@@ -194,6 +195,7 @@ LUA_API void lua_getfenv (lua_State *L, int idx); | |||
194 | ** set functions (stack -> Lua) | 195 | ** set functions (stack -> Lua) |
195 | */ | 196 | */ |
196 | LUA_API void lua_settable (lua_State *L, int idx); | 197 | LUA_API void lua_settable (lua_State *L, int idx); |
198 | LUA_API void lua_setfield (lua_State *L, int idx, const char *k); | ||
197 | LUA_API void lua_rawset (lua_State *L, int idx); | 199 | LUA_API void lua_rawset (lua_State *L, int idx); |
198 | LUA_API void lua_rawseti (lua_State *L, int idx, int n); | 200 | LUA_API void lua_rawseti (lua_State *L, int idx, int n); |
199 | LUA_API int lua_setmetatable (lua_State *L, int objindex); | 201 | LUA_API int lua_setmetatable (lua_State *L, int objindex); |