LUA_GETMETATABLE(3) | Library Functions Manual | LUA_GETMETATABLE(3) |
lua_getmetatable
—
pushes onto the stack the metatable of the value at the
given acceptable index, function indicator [-0, + (0|1), -]
#include
<lua.h>
int
lua_getmetatable
(lua_State
*L, int index);
lua_getmetatable
()
pushes onto the stack the metatable of the value at the given acceptable
index.
If the index is not valid, or if the value does not have a metatable, the function returns 0 and pushes nothing on the stack.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_getmetatable
() manual page is
based on Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 14, 2022 | Debian |