benilla-re systems structs docs

lua_pushnil

function · lua · boundary

Address
0x6f37f0 · 23 bytes, up to 0x6f3806
Meaning
Pushes nil stamped with the current context word
Confidence
verified, proof one
Name from
the community database (idb)
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 401

Callees 0

None by a direct call or jump.

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