#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "lua.h"
#include "lauxlib.h"
#include "lualib.h"
Go to the source code of this file.
Macros | |
#define | ldblib_c |
#define | LUA_LIB |
#define | HOOKKEY "_HKEY" |
#define | gethooktable(L) luaL_getsubtable(L, LUA_REGISTRYINDEX, HOOKKEY) |
Variables | |
static const luaL_Reg | dblib [] |
#define gethooktable | ( | L | ) | luaL_getsubtable(L, LUA_REGISTRYINDEX, HOOKKEY) |
Definition at line 255 of file ldblib.cpp.
Referenced by db_gethook(), db_sethook(), and hookf().
#define HOOKKEY "_HKEY" |
Definition at line 20 of file ldblib.cpp.
#define ldblib_c |
Definition at line 11 of file ldblib.cpp.
#define LUA_LIB |
Definition at line 12 of file ldblib.cpp.
Definition at line 204 of file ldblib.cpp.
References lua_getupvalue(), lua_insert(), lua_pushstring(), lua_setupvalue(), LUA_TFUNCTION, luaL_checkint, and luaL_checktype().
Referenced by db_getupvalue(), and db_setupvalue().
Definition at line 227 of file ldblib.cpp.
References lua_getinfo(), lua_pushvalue(), LUA_TFUNCTION, luaL_argcheck, luaL_checkint, luaL_checktype(), and lua_Debug::nups.
Referenced by db_upvalueid(), and db_upvaluejoin().
Definition at line 343 of file ldblib.cpp.
References lua_pcall, lua_settop(), lua_tostring, luai_writestringerror, and luaL_loadbuffer.
Definition at line 323 of file ldblib.cpp.
References gethooktable, getthread(), hookf(), lua_gethook(), lua_gethookcount(), lua_gethookmask(), lua_pushinteger(), lua_pushliteral, lua_pushstring(), lua_pushthread(), lua_rawget(), lua_remove(), lua_xmove(), and unmakemask().
Definition at line 111 of file ldblib.cpp.
References lua_Debug::currentline, getthread(), lua_Debug::istailcall, lua_Debug::isvararg, lua_Debug::lastlinedefined, lua_Debug::linedefined, lua_createtable(), lua_getinfo(), lua_getstack(), lua_isfunction, lua_isnumber(), lua_pushfstring(), lua_pushnil(), lua_pushvalue(), lua_tointeger, lua_tostring, lua_xmove(), luaL_argerror(), luaL_optstring, lua_Debug::name, lua_Debug::namewhat, lua_Debug::nparams, lua_Debug::nups, preferences::options(), settabsb(), settabsi(), settabss(), lua_Debug::short_src, lua_Debug::source, treatstackoption(), and lua_Debug::what.
Definition at line 161 of file ldblib.cpp.
References getthread(), lua_getlocal(), lua_getstack(), lua_isfunction, lua_pushnil(), lua_pushstring(), lua_pushvalue(), lua_xmove(), luaL_argerror(), and luaL_checkint.
Definition at line 30 of file ldblib.cpp.
References lua_getmetatable(), lua_pushnil(), and luaL_checkany().
Definition at line 24 of file ldblib.cpp.
References lua_pushvalue(), and LUA_REGISTRYINDEX.
Definition at line 216 of file ldblib.cpp.
References auxupvalue().
Definition at line 49 of file ldblib.cpp.
References lua_getuservalue(), lua_pushnil(), LUA_TUSERDATA, and lua_type().
hooktable.__mode = "k"
Definition at line 295 of file ldblib.cpp.
References gethooktable, getthread(), hookf(), lua_isnoneornil, lua_pushstring(), lua_pushthread(), lua_pushvalue(), lua_rawset(), lua_setfield(), lua_sethook(), lua_setmetatable(), lua_settop(), LUA_TFUNCTION, lua_xmove(), luaL_checkstring, luaL_checktype(), luaL_optint, makemask(), and mask.
Definition at line 190 of file ldblib.cpp.
References getthread(), lua_getstack(), lua_pushstring(), lua_setlocal(), lua_settop(), lua_xmove(), luaL_argerror(), luaL_checkany(), and luaL_checkint.
Definition at line 39 of file ldblib.cpp.
References lua_setmetatable(), lua_settop(), LUA_TNIL, LUA_TTABLE, lua_type(), and luaL_argcheck.
Definition at line 221 of file ldblib.cpp.
References auxupvalue(), and luaL_checkany().
Definition at line 58 of file ldblib.cpp.
References lua_isnoneornil, lua_settop(), lua_setuservalue(), LUA_TLIGHTUSERDATA, LUA_TTABLE, LUA_TUSERDATA, lua_type(), luaL_argerror(), and luaL_checktype().
Definition at line 358 of file ldblib.cpp.
References getthread(), lua_isnoneornil, lua_pushvalue(), lua_tostring, luaL_optint, luaL_traceback(), and game_logic::msg().
Definition at line 238 of file ldblib.cpp.
References checkupval(), lua_pushlightuserdata(), and lua_upvalueid().
Definition at line 245 of file ldblib.cpp.
References checkupval(), lua_iscfunction(), lua_upvaluejoin(), and luaL_argcheck.
Definition at line 88 of file ldblib.cpp.
References lua_isthread, and lua_tothread().
Referenced by db_gethook(), db_getinfo(), db_getlocal(), db_sethook(), db_setlocal(), and db_traceback().
Definition at line 258 of file ldblib.cpp.
References lua_Debug::currentline, lua_Debug::event, gethooktable, lua_assert, lua_call, lua_getinfo(), lua_isfunction, lua_pushinteger(), lua_pushnil(), lua_pushstring(), lua_pushthread(), and lua_rawget().
Referenced by db_gethook(), and db_sethook().
LUAMOD_API int luaopen_debug | ( | lua_State * | L | ) |
Definition at line 393 of file ldblib.cpp.
References luaL_newlib.
Referenced by lua_kernel_base::lua_kernel_base().
Definition at line 275 of file ldblib.cpp.
References LUA_MASKCALL, LUA_MASKCOUNT, LUA_MASKLINE, LUA_MASKRET, and mask.
Referenced by db_sethook().
Definition at line 82 of file ldblib.cpp.
References lua_pushboolean(), and lua_setfield().
Referenced by db_getinfo().
Definition at line 76 of file ldblib.cpp.
References lua_pushinteger(), and lua_setfield().
Referenced by db_getinfo().
Definition at line 70 of file ldblib.cpp.
References lua_pushstring(), and lua_setfield().
Referenced by db_getinfo().
Definition at line 100 of file ldblib.cpp.
References lua_pushvalue(), lua_remove(), lua_setfield(), and lua_xmove().
Referenced by db_getinfo().
|
static |
Definition at line 285 of file ldblib.cpp.
References i, LUA_MASKCALL, LUA_MASKLINE, and LUA_MASKRET.
Referenced by db_gethook().
|
static |
Definition at line 372 of file ldblib.cpp.