ScriptGetGlobal
function · ui · orchestration
- Address
0x7027b0· 41 bytes, up to0x7027d8- Signature
int __fastcall (lua_State *L)- Meaning
- Serves getglobal: returns the global named by argument 1, read with lua_gettable
- Confidence
- verified, proof two
- Finding
- ui/luastate#the-library-scripts-see
Finding: The library scripts see in ui: the Lua state, its library and C functions
The base table holds setglobal, getglobal, eight debug functions, seterrorhandler,
geterrorhandler, error, getmetatable, setmetatable, getfenv, setfenv, next, ipairs,
pairs, type, tonumber, tostring, unpack, rawequal, rawget, rawset, assert,
gcinfo, collectgarbage, loadstring, pcall, xpcall, date, time and debugstack, 36 in
all. There is no print, dofile, loadfile, require, _G, _VERSION, no io, os, debug
or coroutine table. debugload, debuginfo, debugprint, debugdump, debugbreak and
debugtimestamp return nothing and do nothing; the other two are debugprofilestart and
debugprofilestop. setglobal(name, v) sets the global to the top value through lua_settable, so
setglobal("x") sets x to "x"; getglobal(name) reads it through lua_gettable, so the
globals' metatable applies. math adds pi and sets the global __pow; bit holds bnot,
band, bor, bxor, lshift, rshift, arshift and mod.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- lua_tostring lua
- lua_pushstring lua
- lua_gettable lua
Calls and jumps by a bare address, from tables/calls.tsv.