Go to the documentation of this file.
27 static const char *
const HOOKKEY =
"_HOOKKEY";
170 if (strchr(options,
'S')) {
178 if (strchr(options,
'l'))
180 if (strchr(options,
'u')) {
185 if (strchr(options,
'n')) {
189 if (strchr(options,
'r')) {
193 if (strchr(options,
't'))
195 if (strchr(options,
'L'))
197 if (strchr(options,
'f'))
263 if (name == NULL)
return 0;
291 luaL_argcheck(L,
id != NULL, argnup,
"invalid upvalue index");
324 static const char *
const hooknames[] =
325 {
"call",
"return",
"line",
"count",
"tail call"};
371 func = NULL; mask = 0;
count = 0;
405 else if (hook !=
hookf)
424 if (fgets(buffer,
sizeof(buffer), stdin) == NULL ||
425 strcmp(buffer,
"cont\n") == 0)
#define luaL_optstring(L, n, d)
LUA_API int lua_gethookcount(lua_State *L)
#define lua_pushliteral(L, s)
LUA_API void lua_rotate(lua_State *L, int idx, int n)
#define lua_pcall(L, n, r, f)
const LUA_API char * lua_setupvalue(lua_State *L, int funcindex, int n)
static int db_gethook(lua_State *L)
#define lua_tostring(L, i)
static int db_upvalueid(lua_State *L)
static int db_debug(lua_State *L)
#define luaL_checkstring(L, n)
LUA_API int lua_checkstack(lua_State *L, int n)
LUA_API int lua_getfield(lua_State *L, int idx, const char *k)
static void settabsb(lua_State *L, const char *k, int v)
LUA_API int lua_pushthread(lua_State *L)
static int db_sethook(lua_State *L)
LUA_API void lua_pushinteger(lua_State *L, lua_Integer n)
LUA_API int lua_getinfo(lua_State *L, const char *what, lua_Debug *ar)
const LUA_API char * lua_getlocal(lua_State *L, const lua_Debug *ar, int n)
#define lua_remove(L, idx)
static char * unmakemask(int mask, char *smask)
LUA_API void lua_upvaluejoin(lua_State *L, int fidx1, int n1, int fidx2, int n2)
LUA_API int lua_iscfunction(lua_State *L, int idx)
const LUA_API char * lua_pushfstring(lua_State *L, const char *fmt,...)
static void treatstackoption(lua_State *L, lua_State *L1, const char *fname)
auto arg(const Char *name, const T &arg) -> detail::named_arg< Char, T >
#define lua_isnoneornil(L, n)
static const luaL_Reg dblib[]
#define luaL_loadbuffer(L, s, sz, n)
LUA_API int lua_type(lua_State *L, int idx)
LUA_API int lua_setmetatable(lua_State *L, int objindex)
#define lua_isthread(L, n)
LUAMOD_API int luaopen_debug(lua_State *L)
LUA_API lua_State * lua_tothread(lua_State *L, int idx)
const LUA_API char * lua_pushstring(lua_State *L, const char *s)
static int db_traceback(lua_State *L)
#define luaL_argexpected(L, cond, arg, tname)
#define lua_isfunction(L, n)
char short_src[LUA_IDSIZE]
LUA_API int lua_gethookmask(lua_State *L)
constexpr auto count() -> size_t
LUA_API void lua_rawset(lua_State *L, int idx)
static int db_getmetatable(lua_State *L)
#define lua_insert(L, idx)
LUA_API int lua_rawget(lua_State *L, int idx)
static int db_getupvalue(lua_State *L)
LUA_API void lua_setfield(lua_State *L, int idx, const char *k)
LUA_API void lua_sethook(lua_State *L, lua_Hook func, int mask, int count)
static void hookf(lua_State *L, lua_Debug *ar)
LUALIB_API int luaL_argerror(lua_State *L, int arg, const char *extramsg)
static int db_getuservalue(lua_State *L)
LUALIB_API void luaL_checkany(lua_State *L, int arg)
LUA_API int lua_setiuservalue(lua_State *L, int idx, int n)
static int auxupvalue(lua_State *L, int get)
#define LUA_REGISTRYINDEX
static int db_upvaluejoin(lua_State *L)
static void checkstack(lua_State *L, lua_State *L1, int n)
void(* lua_Hook)(lua_State *L, lua_Debug *ar)
LUA_API int lua_getstack(lua_State *L, int level, lua_Debug *ar)
static int db_setuservalue(lua_State *L)
#define luaL_argcheck(L, cond, arg, extramsg)
LUA_API void lua_settop(lua_State *L, int idx)
LUA_API void lua_pushboolean(lua_State *L, int b)
LUA_API int lua_setcstacklimit(lua_State *L, unsigned int limit)
LUA_API void lua_pushvalue(lua_State *L, int idx)
static void settabsi(lua_State *L, const char *k, int v)
LUALIB_API void luaL_checktype(lua_State *L, int arg, int t)
static int db_setcstacklimit(lua_State *L)
LUA_API int lua_getmetatable(lua_State *L, int objindex)
static int makemask(const char *smask, int count)
#define lua_call(L, n, r)
LUA_API lua_Hook lua_gethook(lua_State *L)
static const char *const HOOKKEY
const LUA_API char * lua_pushlstring(lua_State *L, const char *s, size_t len)
LUA_API void lua_xmove(lua_State *from, lua_State *to, int n)
static void * checkupval(lua_State *L, int argf, int argnup, int *pnup)
LUA_API void * lua_upvalueid(lua_State *L, int fidx, int n)
LUALIB_API lua_Integer luaL_optinteger(lua_State *L, int arg, lua_Integer def)
static int db_getlocal(lua_State *L)
LUALIB_API void luaL_traceback(lua_State *L, lua_State *L1, const char *msg, int level)
#define luaL_newlib(L, l)
LUALIB_API int luaL_error(lua_State *L, const char *fmt,...)
static int db_setmetatable(lua_State *L)
auto get(const nlohmann::detail::iteration_proxy_value< IteratorType > &i) -> decltype(i.key())
#define lua_writestringerror(s, p)
static lua_State * getthread(lua_State *L, int *arg)
const LUA_API char * lua_getupvalue(lua_State *L, int funcindex, int n)
LUALIB_API lua_Integer luaL_checkinteger(lua_State *L, int arg)
static void settabss(lua_State *L, const char *k, const char *v)
LUALIB_API int luaL_getsubtable(lua_State *L, int idx, const char *fname)
LUA_API void lua_pushnil(lua_State *L)
LUA_API int lua_getiuservalue(lua_State *L, int idx, int n)
static int db_setlocal(lua_State *L)
static int db_setupvalue(lua_State *L)
const LUA_API char * lua_setlocal(lua_State *L, const lua_Debug *ar, int n)
static int db_getinfo(lua_State *L)
LUA_API void lua_pushlightuserdata(lua_State *L, void *p)
const LUALIB_API char * luaL_tolstring(lua_State *L, int idx, size_t *len)
static int db_getregistry(lua_State *L)
plotjuggler
Author(s): Davide Faconti
autogenerated on Mon Nov 11 2024 03:23:44