benilla-re systems structs docs

f_Ccall

function · lua · unreached

Address
0x6f4290 · 141 bytes, up to 0x6f431c
Meaning
Pushes a C closure and a light userdata and calls the closure
Confidence
verified, proof one
Finding
lua/api#calls-and-chunks

Finding: Calls and chunks in lua: the C API

lua_pcall runs a call in protected mode with an optional handler index: it saves the function position, builds the argument record on the stack and calls luaD_pcall. f_call, the record's function, calls luaD_call. lua_cpcall and f_Ccall call a C function in protected mode, with a light userdata argument. lua_dump writes a Lua function that has no upvalues through luaU_dump and answers 0 for any other value.

functionnamedecided by
0x6f41a0lua_pcallrecord of the function and result count on the stack, luaD_pcall (0x6f4237), ret 8
0x6f4250f_callloads [edx] and [edx+4] (0x6f4250), calls luaD_call (0x6f4256)
0x6f4260lua_cpcallmov edx,0x6f4290 (0x6f427c) names f_Ccall as the protected function
0x6f4290f_CcallluaF_newCclosure (0x6f4298), tag 2 stored (0x6f42d7), luaD_call (0x6f4315)
0x6f4370lua_dumptag 6 and the C and upvalue bytes (0x6f437b, 0x6f4383, 0x6f438a), luaU_dump (0x6f4399)

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 3

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