benilla-re systems structs docs

ScriptAssert

function · ui · orchestration

Address
0x7031a0 · 81 bytes, up to 0x7031f0
Signature
int __fastcall (lua_State *L)
Meaning
Serves assert: raises its message when argument 1 is false or nil, else keeps argument 1
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 5

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