benilla-re systems structs docs

luaT_gettmbyobj

function · lua · boundary

Address
0x6f7bd0 · 69 bytes, up to 0x6f7c14
Meaning
Returns a metamethod of a table or full userdata, nil for any other type
Confidence
verified, proof two
Finding
ui/luastate#lua-50-behaviour-kept

Finding: Lua 5.0 behaviour kept in ui: the Lua state, its library and C functions

The client keeps Lua 5.0 where Lua 5.1 differs. for k, v in t do with a table t is the TFORPREP opcode: it copies the table into the state slot and replaces the generator with a raw lookup of the global next, once on entry, so a script that overwrites next changes such loops. next walks the array part by index and then the node vector by slot, skipping nil values. Only tables and full userdata have metatables: a string has none, so s:upper() is an error.

The derivation is in the doc.

Callers 5

Callees 1

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