ScriptPushFenvOverride
function · ui · primitive
- Address
0x702ba0· 55 bytes, up to0x702bd6- Signature
int __thiscall (void *this)- Meaning
- Pushes the environment of the top function and its __fenv entry, answering whether that entry is set
- Confidence
- verified, proof two
- Finding
- ui/luabase#function-environments
Finding: Function environments in ui: the Lua base library
getfenv([f]) takes a function or a level (default 1; level must be non-negative below 0, invalid level past the
stack) and answers the function's environment table, or that table's __fenv entry when it has one. setfenv(f, table)
requires a table at 2 and the same function-or-level at 1, raises `setfenv' cannot change a protected environment
when the environment has a __fenv entry, and otherwise sets it. A numeric f equal to 0 replaces the state's global
table with the table and returns nothing. A function the call cannot set raises
`setfenv' cannot change environment of given function. A level naming a tail call raises no function environment for tail call at level %d.
The derivation is in the doc.
Callers 2
- ScriptGetFenv ui
- ScriptSetFenv ui
Callees 4
- lua_type lua
- lua_pushlstring lua
- lua_rawget lua
- lua_getfenv lua
Calls and jumps by a bare address, from tables/calls.tsv.