diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-09-29 18:00:25 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-09-29 18:00:25 -0300 |
commit | cf2a194edc8b1d3e6b342a31d042e1b5fd0d2e8a (patch) | |
tree | ec4656ebd3b6a2fa65d6cf2f9b917496f552e5a1 /lauxlib.h | |
parent | 66845f415feb5aa98be5190c7bf12931d3d4c388 (diff) | |
download | lua-cf2a194edc8b1d3e6b342a31d042e1b5fd0d2e8a.tar.gz lua-cf2a194edc8b1d3e6b342a31d042e1b5fd0d2e8a.tar.bz2 lua-cf2a194edc8b1d3e6b342a31d042e1b5fd0d2e8a.zip |
better API for luaL_getfield/setfield
Diffstat (limited to 'lauxlib.h')
-rw-r--r-- | lauxlib.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lauxlib.h,v 1.70 2004/07/09 18:23:17 roberto Exp roberto $ | 2 | ** $Id: lauxlib.h,v 1.71 2004/09/21 16:54:32 roberto Exp roberto $ |
3 | ** Auxiliary functions for building Lua libraries | 3 | ** Auxiliary functions for building Lua libraries |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -72,8 +72,8 @@ LUALIB_API lua_State *(luaL_newstate) (void); | |||
72 | 72 | ||
73 | LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, | 73 | LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, |
74 | const char *r); | 74 | const char *r); |
75 | LUALIB_API const char *luaL_getfield (lua_State *L, const char *fname); | 75 | LUALIB_API const char *luaL_getfield (lua_State *L, int idx, const char *fname); |
76 | LUALIB_API const char *luaL_setfield (lua_State *L, const char *fname); | 76 | LUALIB_API const char *luaL_setfield (lua_State *L, int idx, const char *fname); |
77 | 77 | ||
78 | 78 | ||
79 | 79 | ||