benilla-re systems structs docs

lua_getstack

function · lua · boundary

Address
0x6fbaa0 · 120 bytes, up to 0x6fbb17
Meaning
Fills a debug record for a call level and answers whether it exists
Confidence
verified, proof one
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 4

Callees 0

None by a direct call or jump.

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