LUA_GETTABLE(3) | Library Functions Manual | LUA_GETTABLE(3) |
lua_gettable
—
pushes onto the stack the value t[k], where t is the value
at the given valid index and k is the value at the top of the stack,
function indicator [-1, +1, e]
#include
<lua.h>
void
lua_gettable
(lua_State
*L, int index);
lua_gettable
()
pushes onto the stack the value t[k], where t is the value at the given
valid index and k is the value at the top of the stack.
This function pops the key from the stack (putting the resulting value in its place). 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_gettable
() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 14, 2022 | Debian |