From cf2a194edc8b1d3e6b342a31d042e1b5fd0d2e8a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 29 Sep 2004 18:00:25 -0300 Subject: better API for luaL_getfield/setfield --- lauxlib.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lauxlib.h') diff --git a/lauxlib.h b/lauxlib.h index 334ddd6e..e8ee1438 100644 --- a/lauxlib.h +++ b/lauxlib.h @@ -1,5 +1,5 @@ /* -** $Id: lauxlib.h,v 1.70 2004/07/09 18:23:17 roberto Exp roberto $ +** $Id: lauxlib.h,v 1.71 2004/09/21 16:54:32 roberto Exp roberto $ ** Auxiliary functions for building Lua libraries ** See Copyright Notice in lua.h */ @@ -72,8 +72,8 @@ LUALIB_API lua_State *(luaL_newstate) (void); LUALIB_API const char *luaL_gsub (lua_State *L, const char *s, const char *p, const char *r); -LUALIB_API const char *luaL_getfield (lua_State *L, const char *fname); -LUALIB_API const char *luaL_setfield (lua_State *L, const char *fname); +LUALIB_API const char *luaL_getfield (lua_State *L, int idx, const char *fname); +LUALIB_API const char *luaL_setfield (lua_State *L, int idx, const char *fname); -- cgit v1.2.3-55-g6feb