| LUA_DEBUG(3) | Library Functions Manual | LUA_DEBUG(3) |
lua_Debug —
structure used to carry different pieces of information
about an active function
#include
<lua.h>
typedef struct lua_Debug;
lua_Debug()
a structure used to carry different pieces of information about an active
function. lua_getstack(3) fills only the private part of
this structure, for later use. To fill the other fields of
lua_Debug with useful information, call
lua_getinfo(3).
lua_Debug is defined as:
typedef struct lua_Debug {
int event;
const char *name; /* (n) */
const char *namewhat; /* (n) */
const char *what; /* (S) */
const char *source; /* (S) */
int currentline; /* (l) */
int nups; /* (u) number of upvalues */
int linedefined; /* (S) */
int lastlinedefined; /* (S) */
char short_src[LUA_IDSIZE]; /* (S) */
/* private part */
other fields
} lua_Debug;
The fields of lua_Debug have the following
meaning:
NULL.lua_getinfo(3), lua_getstack(3)
Roberto Ierusalimschy, Luiz Henrique de Figueiredo, and Waldemar Celes, Lua 5.1 Reference Manual.
The lua_Debug() manual page is based on
Lua Reference Manual 5.1 and was created by Sergey Bronnikov.
| July 19, 2022 | Debian |