benilla-re systems structs docs

ScriptSetGlobal

function · ui · orchestration

Address
0x702770 · 50 bytes, up to 0x7027a1
Signature
int __fastcall (lua_State *L)
Meaning
Serves setglobal: sets the global named by argument 1 to the top value, returning nothing
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 4

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