ScriptCollectGarbage
function · ui · primitive
- Address
0x703250· 35 bytes, up to0x703272- Signature
int __fastcall (lua_State *L)- Meaning
- Serves collectgarbage: sets the collection threshold to the optional argument in kilobytes
- Confidence
- verified, proof two
- Finding
- ui/luabase#the-collector-pair
Finding: The collector pair in ui: the Lua base library
gcinfo() returns two numbers: the word at +0x28 of the state's global record shifted right by 10, then the one at +0x24
shifted right by 10. collectgarbage([limit]) passes __ftol of the optional number (default 0) to
lua_setgcthreshold and returns nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 3
- __ftol crt
- lua_setgcthreshold lua
- luaL_optnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.