LUA_GETFIELD(3) | Library Functions Manual | LUA_GETFIELD(3) |
lua_getfield
—
pushes onto the stack the value t[k], where t is the value
at the given valid index, function indicator [-0, +1, e]
#include
<lua.h>
void
lua_getfield
(lua_State
*L, int index,
const char *k);
lua_getfield
()
pushes onto the stack the value t[k], where t is the value at the given
valid index. As in Lua, this function may trigger a metamethod for the
"index" event.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_getfield
() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 14, 2022 | Debian |