ScriptSetMetatable
function · ui · orchestration
- Address
0x702a40· 123 bytes, up to0x702aba- Signature
int __fastcall (lua_State *L)- Meaning
- Serves setmetatable: sets the metatable of a table unless it has a __metatable entry
- Confidence
- verified, proof two
- Finding
- ui/luabase#metatables
Finding: Metatables in ui: the Lua base library
getmetatable(v) requires an argument and answers nil for a value without a metatable. Otherwise it answers the
metatable's __metatable entry when there is one, the metatable itself when not. setmetatable(t, mt) requires a
table at 1 and nil or a table at 2 (argument 2 error nil or table expected), raises cannot change a protected metatable when the table's metatable has a __metatable entry, then sets the metatable and returns the table.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 7
- lua_settop lua
- lua_type lua
- lua_setmetatable lua
- luaL_argerror lua
- luaL_error lua
- luaL_checktype lua
- luaL_getmetafield lua
Calls and jumps by a bare address, from tables/calls.tsv.