ScriptError
function · ui · primitive
- Address
0x702970· 123 bytes, up to0x7029ea- Signature
int __fastcall (lua_State *L)- Meaning
- Serves error: raises argument 1, with the caller's position prepended for a string at a nonzero level
- Confidence
- verified, proof two
- Finding
- ui/luabase#error-and-assert
Finding: Error and assert in ui: the Lua base library
error(message [, level]) takes the level as __ftol of the optional number, default 1. A string message at a nonzero
level has the caller's position (0x6f48e0 with the level) concatenated before it; any other message is raised as it is.
assert(v [, message]) needs an argument; when it is false or nil the message, assertion failed! by default, is raised
through luaL_error("%s", message). Otherwise the stack is cut to the first argument and 1 is returned.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 8
- __ftol crt
- lua_pushvalue lua
- lua_isstring lua
- lua_error lua
- lua_concat lua
- luaL_where lua
- luaL_checkany lua
- luaL_optnumber lua
Calls and jumps by a bare address, from tables/calls.tsv.