luaL_newmetatable_type

Function luaL_newmetatable_type 

Source
pub fn luaL_newmetatable_type(
    l: LuaState,
    tname: LuaString,
    tid: c_int,
) -> c_int
Expand description

Creates a metatable with type and typeid Same as luaL_newmetatable, but also sets the MetaName and MetaID fields of the metatable

ยงParameters

  • l - LuaState
  • tname - TypeName to be added to the metatable
  • tid - TypeID to be applied to the metatable