benilla-re systems structs docs

ScriptDebugStack

function · ui · primitive

Address
0x703760 · 609 bytes, up to 0x7039c0
Signature
int __fastcall (lua_State *L)
Meaning
Serves debugstack: returns the call stack from a level as text, one line per level with head and tail windows
Confidence
verified, proof two
Finding
ui/luastate#debugstack

Finding: debugstack in ui: the Lua state, its library and C functions

debugstack(start, head, tail) answers the call stack as text, one line per level, each ending in a newline, with no header. start defaults to 1, the function that called debugstack; head to 12; tail to 10. Each number is taken from the first argument while it is a number or numeric string, truncated, and removed. When arguments remain and the first is a string or number, they are joined in front of the text with no separator, and a later one that is neither raises in the join; when the first is anything else, nothing is built and the last argument is returned. A start past the stack answers the joined arguments alone, "" by default.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 11

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