LUA_GETSTACK(3) | Library Functions Manual | LUA_GETSTACK(3) |
lua_getstack
— get
information about the interpreter runtime stack, function indicator [-0, +0,
-]
#include
<lua.h>
int
lua_getstack
(lua_State
*L, int level,
lua_Debug *ar);
lua_getstack
()
get information about the interpreter runtime stack.
This function fills parts of a lua_Debug(3) structure with an identification of the activation record of the function executing at a given level. Level 0 is the current running function, whereas level n+1 is the function that has called level n.
When there are no errors, lua_getstack
()
returns 1; when called with a level greater than the stack depth, it returns
0.
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_getstack
() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
July 13, 2022 | Debian |