s_frameScriptBaseLibrary
global · ui
- Address
0x811e28· 288 bytes, up to0x811f47- Type
uint32_t[72]- Meaning
- Holds 36 pairs of a name and a function, setglobal to debugstack, the script base library
- 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.