benilla-re systems structs docs

ScriptXpcall

function · ui · orchestration

Address
0x703340 · 84 bytes, up to 0x703393
Signature
int __fastcall (lua_State *L)
Meaning
Serves xpcall: calls argument 1 under argument 2 as handler, answers a success boolean before its results
Confidence
verified, proof two
Finding
ui/luabase#protected-calls

Finding: Protected calls in ui: the Lua base library

pcall(f, ...) requires f, calls it with every other argument and keeps all its results, with no handler. It pushes true for status 0 and false otherwise, inserts that at index 1 and returns every value on the stack. xpcall(f, handler) requires the handler, leaves [handler, f], calls f with no arguments and the handler as error function, pushes the boolean, replaces index 1 with it and returns the stack. After a failure the error value is the second result.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 7

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