Github User Fetcher 1.0.0
C Application with Server and GUI
|
#include "lprefix.h"
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
#include "lua.h"
#include "lapi.h"
#include "lcode.h"
#include "ldebug.h"
#include "ldo.h"
#include "lfunc.h"
#include "lobject.h"
#include "lopcodes.h"
#include "lstate.h"
#include "lstring.h"
#include "ltable.h"
#include "ltm.h"
#include "lvm.h"
Go to the source code of this file.
Macros | |
#define | ldebug_c |
#define | LUA_CORE |
#define | noLuaClosure(f) ((f) == NULL || (f)->c.tt == LUA_TCCL) |
#define | ci_func(ci) (clLvalue((ci)->func)) |
Functions | |
static const char * | funcnamefromcode (lua_State *L, CallInfo *ci, const char **name) |
static int | currentpc (CallInfo *ci) |
static int | currentline (CallInfo *ci) |
static void | swapextra (lua_State *L) |
LUA_API void | lua_sethook (lua_State *L, lua_Hook func, int mask, int count) |
LUA_API lua_Hook | lua_gethook (lua_State *L) |
LUA_API int | lua_gethookmask (lua_State *L) |
LUA_API int | lua_gethookcount (lua_State *L) |
LUA_API int | lua_getstack (lua_State *L, int level, lua_Debug *ar) |
static const char * | upvalname (Proto *p, int uv) |
static const char * | findvararg (CallInfo *ci, int n, StkId *pos) |
static const char * | findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos) |
LUA_API const char * | lua_getlocal (lua_State *L, const lua_Debug *ar, int n) |
LUA_API const char * | lua_setlocal (lua_State *L, const lua_Debug *ar, int n) |
static void | funcinfo (lua_Debug *ar, Closure *cl) |
static void | collectvalidlines (lua_State *L, Closure *f) |
static const char * | getfuncname (lua_State *L, CallInfo *ci, const char **name) |
static int | auxgetinfo (lua_State *L, const char *what, lua_Debug *ar, Closure *f, CallInfo *ci) |
LUA_API int | lua_getinfo (lua_State *L, const char *what, lua_Debug *ar) |
static const char * | getobjname (Proto *p, int lastpc, int reg, const char **name) |
static void | kname (Proto *p, int pc, int c, const char **name) |
static int | filterpc (int pc, int jmptarget) |
static int | findsetreg (Proto *p, int lastpc, int reg) |
static int | isinstack (CallInfo *ci, const TValue *o) |
static const char * | getupvalname (CallInfo *ci, const TValue *o, const char **name) |
static const char * | varinfo (lua_State *L, const TValue *o) |
l_noret | luaG_typeerror (lua_State *L, const TValue *o, const char *op) |
l_noret | luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) |
l_noret | luaG_opinterror (lua_State *L, const TValue *p1, const TValue *p2, const char *msg) |
l_noret | luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) |
l_noret | luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) |
const char * | luaG_addinfo (lua_State *L, const char *msg, TString *src, int line) |
l_noret | luaG_errormsg (lua_State *L) |
l_noret | luaG_runerror (lua_State *L, const char *fmt,...) |
void | luaG_traceexec (lua_State *L) |
#define ci_func | ( | ci | ) | (clLvalue((ci)->func)) |
Definition at line 38 of file lua-5.3.6/src/ldebug.c.
Referenced by currentline(), currentpc(), findlocal(), funcnamefromcode(), getupvalname(), luaG_runerror(), luaG_traceexec(), and varinfo().
#define ldebug_c |
Definition at line 7 of file lua-5.3.6/src/ldebug.c.
#define LUA_CORE |
Definition at line 8 of file lua-5.3.6/src/ldebug.c.
Definition at line 34 of file lua-5.3.6/src/ldebug.c.
Referenced by auxgetinfo(), collectvalidlines(), and funcinfo().
|
static |
Definition at line 263 of file lua-5.3.6/src/ldebug.c.
References Closure::c, CallInfo::callstatus, CIST_TAIL, lua_Debug::currentline, currentline(), funcinfo(), getfuncname(), Proto::is_vararg, isLua, lua_Debug::istailcall, lua_Debug::isvararg, Closure::l, lua_Debug::name, lua_Debug::namewhat, noLuaClosure, lua_Debug::nparams, NULL, Proto::numparams, lua_Debug::nups, and LClosure::p.
Referenced by lua_getinfo().
Definition at line 230 of file lua-5.3.6/src/ldebug.c.
References api_incr_top, Closure::l, Proto::lineinfo, luaH_new(), luaH_setint(), noLuaClosure, LClosure::p, setbvalue, sethvalue, setnilvalue, Proto::sizelineinfo, and lua_State::top.
Referenced by lua_getinfo().
|
static |
Definition at line 51 of file lua-5.3.6/src/ldebug.c.
References ci_func, currentpc(), and getfuncline.
Referenced by auxgetinfo(), and luaG_runerror().
|
static |
Definition at line 45 of file lua-5.3.6/src/ldebug.c.
References ci_func, isLua, CallInfo::l, lua_assert, pcRel, CallInfo::savedpc, and CallInfo::u.
Referenced by currentline(), findlocal(), funcnamefromcode(), and varinfo().
|
static |
Definition at line 376 of file lua-5.3.6/src/ldebug.c.
Referenced by findsetreg().
Definition at line 146 of file lua-5.3.6/src/ldebug.c.
References CallInfo::base, lua_State::ci, ci_func, currentpc(), findvararg(), CallInfo::func, isLua, CallInfo::l, luaF_getlocalname(), name, CallInfo::next, NULL, lua_State::top, and CallInfo::u.
Referenced by lua_getlocal(), and lua_setlocal().
|
static |
Definition at line 386 of file lua-5.3.6/src/ldebug.c.
References Proto::code, filterpc(), GET_OPCODE, GETARG_A, GETARG_B, GETARG_sBx, OP_CALL, OP_JMP, OP_LOADNIL, OP_TAILCALL, OP_TFORCALL, and testAMode.
Referenced by getobjname().
Definition at line 134 of file lua-5.3.6/src/ldebug.c.
References CallInfo::base, cast_int, clLvalue, CallInfo::func, CallInfo::l, NULL, and CallInfo::u.
Referenced by findlocal().
Definition at line 212 of file lua-5.3.6/src/ldebug.c.
References getstr, Closure::l, Proto::lastlinedefined, lua_Debug::lastlinedefined, Proto::linedefined, lua_Debug::linedefined, LUA_IDSIZE, luaO_chunkid(), noLuaClosure, LClosure::p, lua_Debug::short_src, Proto::source, lua_Debug::source, and lua_Debug::what.
Referenced by auxgetinfo().
Definition at line 492 of file lua-5.3.6/src/ldebug.c.
References CallInfo::callstatus, cast, cast_int, ci_func, CIST_HOOKED, Proto::code, currentpc(), G, GET_OPCODE, GETARG_A, getobjname(), getstr, name, NULL, OP_ADD, OP_BAND, OP_BNOT, OP_BOR, OP_BXOR, OP_CALL, OP_CONCAT, OP_DIV, OP_EQ, OP_GETTABLE, OP_GETTABUP, OP_IDIV, OP_LE, OP_LEN, OP_LT, OP_MOD, OP_MUL, OP_POW, OP_SELF, OP_SETTABLE, OP_SETTABUP, OP_SHL, OP_SHR, OP_SUB, OP_TAILCALL, OP_TFORCALL, OP_UNM, Proto::p, TM_ADD, TM_BNOT, TM_CONCAT, TM_EQ, TM_INDEX, TM_LE, TM_LEN, TM_LT, TM_NEWINDEX, TM_UNM, and tmname.
Referenced by getfuncname().
Definition at line 249 of file lua-5.3.6/src/ldebug.c.
References CallInfo::callstatus, CIST_FIN, CIST_TAIL, funcnamefromcode(), isLua, name, NULL, and CallInfo::previous.
Referenced by auxgetinfo().
|
static |
Definition at line 432 of file lua-5.3.6/src/ldebug.c.
References Proto::code, findsetreg(), GET_OPCODE, GETARG_A, GETARG_Ax, GETARG_B, GETARG_Bx, GETARG_C, getobjname(), Proto::k, kname(), LUA_ENV, luaF_getlocalname(), name, NULL, OP_GETTABLE, OP_GETTABUP, OP_GETUPVAL, OP_LOADK, OP_LOADKX, OP_MOVE, OP_SELF, svalue, ttisstring, and upvalname().
Referenced by funcnamefromcode(), getobjname(), kname(), and varinfo().
Definition at line 558 of file lua-5.3.6/src/ldebug.c.
References ci_func, name, NULL, LClosure::p, upvalname(), LClosure::upvals, and UpVal::v.
Referenced by varinfo().
Definition at line 547 of file lua-5.3.6/src/ldebug.c.
References CallInfo::base, CallInfo::l, CallInfo::top, and CallInfo::u.
Referenced by varinfo().
|
static |
Definition at line 356 of file lua-5.3.6/src/ldebug.c.
References getobjname(), INDEXK, ISK, Proto::k, name, svalue, and ttisstring.
Referenced by getobjname().
Definition at line 95 of file lua-5.3.6/src/ldebug.c.
References lua_State::hook.
Definition at line 105 of file lua-5.3.6/src/ldebug.c.
References lua_State::basehookcount.
Definition at line 310 of file lua-5.3.6/src/ldebug.c.
References api_check, api_incr_top, auxgetinfo(), clvalue, collectvalidlines(), CallInfo::func, lua_Debug::i_ci, lua_assert, lua_lock, lua_unlock, NULL, setobjs2s, swapextra(), lua_State::top, ttisclosure, and ttisfunction.
Definition at line 172 of file lua-5.3.6/src/ldebug.c.
References api_incr_top, clLvalue, findlocal(), lua_Debug::i_ci, isLfunction, lua_lock, lua_unlock, luaF_getlocalname(), name, NULL, setobj2s, swapextra(), and lua_State::top.
Definition at line 110 of file lua-5.3.6/src/ldebug.c.
References lua_State::base_ci, lua_State::ci, lua_Debug::i_ci, lua_lock, lua_unlock, and CallInfo::previous.
Definition at line 81 of file lua-5.3.6/src/ldebug.c.
References lua_State::basehookcount, cast_byte, lua_State::ci, lua_State::hook, lua_State::hookmask, isLua, CallInfo::l, mask, NULL, lua_State::oldpc, resethookcount, CallInfo::savedpc, and CallInfo::u.
Definition at line 196 of file lua-5.3.6/src/ldebug.c.
References findlocal(), lua_Debug::i_ci, lua_lock, lua_unlock, name, NULL, setobjs2s, swapextra(), and lua_State::top.
Definition at line 629 of file lua-5.3.6/src/ldebug.c.
References getstr, LUA_IDSIZE, luaO_chunkid(), and luaO_pushfstring().
Referenced by lexerror(), lexerror(), and luaG_runerror().
Definition at line 592 of file lua-5.3.6/src/ldebug.c.
References cvt2str, luaG_typeerror(), and ttisstring.
Definition at line 641 of file lua-5.3.6/src/ldebug.c.
References lua_State::errfunc, LUA_ERRRUN, luaD_callnoyield(), luaD_throw(), restorestack, setobjs2s, and lua_State::top.
Referenced by luaG_runerror().
Definition at line 598 of file lua-5.3.6/src/ldebug.c.
References luaG_typeerror(), and tonumber.
Referenced by luaT_trybinTM().
Definition at line 618 of file lua-5.3.6/src/ldebug.c.
References luaG_runerror(), and luaT_objtypename().
Definition at line 653 of file lua-5.3.6/src/ldebug.c.
References lua_State::ci, ci_func, currentline(), isLua, luaC_checkGC, luaG_addinfo(), luaG_errormsg(), and luaO_pushvfstring().
Referenced by luaG_ordererror(), luaG_tointerror(), and luaG_typeerror().
Definition at line 610 of file lua-5.3.6/src/ldebug.c.
References luaG_runerror(), tointeger, and varinfo().
Referenced by luaT_trybinTM().
void luaG_traceexec | ( | lua_State * | L | ) |
Definition at line 667 of file lua-5.3.6/src/ldebug.c.
References CallInfo::callstatus, lua_State::ci, ci_func, CIST_HOOKYIELD, CallInfo::func, getfuncline, lua_State::hookcount, lua_State::hookmask, CallInfo::l, LUA_HOOKCOUNT, LUA_HOOKLINE, LUA_MASKCOUNT, LUA_MASKLINE, LUA_YIELD, luaD_hook(), luaD_throw(), mask, lua_State::oldpc, Proto::p, pcRel, resethookcount, CallInfo::savedpc, lua_State::status, lua_State::top, and CallInfo::u.
Definition at line 586 of file lua-5.3.6/src/ldebug.c.
References luaG_runerror(), luaT_objtypename(), and varinfo().
Referenced by luaG_concaterror(), and luaG_opinterror().
|
static |
Definition at line 62 of file lua-5.3.6/src/ldebug.c.
References lua_State::ci, CallInfo::extra, CallInfo::func, LUA_YIELD, restorestack, savestack, and lua_State::status.
Referenced by lua_getinfo(), lua_getlocal(), and lua_setlocal().
|
static |
Definition at line 127 of file lua-5.3.6/src/ldebug.c.
References check_exp, getstr, NULL, s, and Proto::upvalues.
Referenced by getobjname(), and getupvalname().
Definition at line 572 of file lua-5.3.6/src/ldebug.c.
References CallInfo::base, cast_int, lua_State::ci, ci_func, currentpc(), getobjname(), getupvalname(), isinstack(), isLua, CallInfo::l, luaO_pushfstring(), name, NULL, and CallInfo::u.
Referenced by luaG_tointerror(), and luaG_typeerror().