benilla-re systems structs docs

ScriptGetMetatable

function · ui · orchestration

Address
0x7029f0 · 65 bytes, up to 0x702a30
Signature
int __fastcall (lua_State *L)
Meaning
Serves getmetatable: answers nil, the __metatable entry, or the metatable
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 4

Calls and jumps by a bare address, from tables/calls.tsv.