lua_newtable
function · lua · boundary
- Address
0x6f3c90· 66 bytes, up to0x6f3cd1- Meaning
- Pushes a new table stamped with the current context word
- Confidence
- verified, proof two
- Finding
- ui/luastate#the-context-word
Finding: The context word in ui: the Lua state, its library and C functions
Each Lua value is 16 bytes: a type tag, a context word at +0x4 (padding in stock Lua 5.0) and the
value at +0x8. A new value takes the current context 0xceeac0. Copying a value with a nonzero
word makes that word current while the nesting count 0xceeac4 is above 0; copying one with a zero
word gives it the current context. The per-frame update zeroes the count. A script slot runs under
its word, RunScript under [0x83de24], an add-on's files under its name or 0. Context 0 is the
client's own code: RegisterForSave raises otherwise, and the action gate 0x494a50 refuses a
nonzero context for some kinds (ui/protected#protected-action-gate), signalling
MACRO_ACTION_FORBIDDEN for RunScript's word and ADDON_ACTION_FORBIDDEN with the word's text.
The derivation is in the doc.
Callers 7
- luaL_newmetatable lua
- luaL_openlib lua
- getsizes lua
- LockScriptObject ui
- ScriptDate ui
- FrameScriptInitialize ui
- Frame::GetBackdrop ui
Callees 2
- luaC_collectgarbage lua
- luaH_new lua
Calls and jumps by a bare address, from tables/calls.tsv.