ScriptSetErrorHandler
function · ui · orchestration
- Address
0x702900· 80 bytes, up to0x70294f- Signature
int __fastcall (lua_State *L)- Meaning
- Serves seterrorhandler: keeps a reference to a function argument as the error handler, raising its usage otherwise
- Confidence
- verified, proof two
- Finding
- ui/luastate#error-handlers
Finding: Error handlers in ui: the Lua state, its library and C functions
A script error inside a handler is passed to the error handler 0x703b40: when a function has been
set with seterrorhandler, it calls that function with the message and returns its result;
otherwise the message is returned unchanged. seterrorhandler(f) raises
Usage: seterrorhandler(errfunc) unless its first argument is a function, frees the old reference
and keeps a reference to the top value; geterrorhandler() answers the function, or nil before
one is set.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 4
- lua_type lua
- luaL_error lua
- luaL_ref lua
- luaL_unref lua
Calls and jumps by a bare address, from tables/calls.tsv.