benilla-re systems structs docs

bitlib

global · lua

Address
0x822c18 · 72 bytes, up to 0x822c5f
Type
luaL_reg[9]
Meaning
Pairs the bit library names bnot to mod with their functions, ending in a null pair
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.