Skip to main content

get_metatable

Function get_metatable 

Source
pub fn get_metatable(
    state: &mut LuaState,
    tname: &[u8],
) -> Result<LuaType, LuaError>
Expand description

Push registry[tname] and return its type.

C: #define luaL_getmetatable(L,n) (lua_getfield(L, LUA_REGISTRYINDEX, (n)))