#include "lstate.h"
Go to the source code of this file.
Macros | |
#define | pcRel(pc, p) (cast_int((pc) - (p)->code) - 1) |
#define | ci_func(ci) (clLvalue(s2v((ci)->func))) |
#define | resethookcount(L) (L->hookcount = L->basehookcount) |
#define | ABSLINEINFO (-0x80) |
Functions | |
LUAI_FUNC int | luaG_getfuncline (const Proto *f, int pc) |
LUAI_FUNC const char * | luaG_findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos) |
LUAI_FUNC l_noret | luaG_typeerror (lua_State *L, const TValue *o, const char *opname) |
LUAI_FUNC l_noret | luaG_forerror (lua_State *L, const TValue *o, const char *what) |
LUAI_FUNC l_noret | luaG_concaterror (lua_State *L, const TValue *p1, const TValue *p2) |
LUAI_FUNC l_noret | luaG_opinterror (lua_State *L, const TValue *p1, const TValue *p2, const char *msg) |
LUAI_FUNC l_noret | luaG_tointerror (lua_State *L, const TValue *p1, const TValue *p2) |
LUAI_FUNC l_noret | luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) |
LUAI_FUNC l_noret | luaG_runerror (lua_State *L, const char *fmt,...) |
LUAI_FUNC const char * | luaG_addinfo (lua_State *L, const char *msg, TString *src, int line) |
LUAI_FUNC l_noret | luaG_errormsg (lua_State *L) |
LUAI_FUNC int | luaG_traceexec (lua_State *L, const Instruction *pc) |
#define ABSLINEINFO (-0x80) |
Definition at line 27 of file ldebug.h.
Referenced by luaG_getfuncline(), nextline(), removelastlineinfo(), and savelineinfo().
Definition at line 18 of file ldebug.h.
Referenced by currentpc(), funcnamefromcode(), getcurrentline(), getupvalname(), luaG_findlocal(), luaG_runerror(), luaG_traceexec(), rethook(), and varinfo().
Definition at line 14 of file ldebug.h.
Referenced by currentpc(), luaG_traceexec(), and rethook().
#define resethookcount | ( | L | ) | (L->hookcount = L->basehookcount) |
Definition at line 21 of file ldebug.h.
Referenced by lua_newthread(), lua_sethook(), luaG_traceexec(), and preinit_thread().
Definition at line 742 of file ldebug.cpp.
References getstr, LUA_IDSIZE, luaO_chunkid(), luaO_pushfstring(), and tsslen.
Referenced by lexerror(), and luaG_runerror().
Definition at line 706 of file ldebug.cpp.
References cvt2str, luaG_typeerror(), and ttisstring.
Referenced by luaT_tryconcatTM().
Definition at line 754 of file ldebug.cpp.
References lua_State::errfunc, lua_assert, LUA_ERRRUN, luaD_callnoyield(), luaD_throw(), restorestack, s2v, setobjs2s, lua_State::top, and ttisfunction.
Referenced by lua_error(), and luaG_runerror().
Definition at line 200 of file ldebug.cpp.
References lua_State::ci, ci_func, currentpc(), findvararg(), CallInfo::func, isLua, luaF_getlocalname(), CallInfo::next, p, and lua_State::top.
Referenced by lua_getlocal(), lua_setlocal(), and varerror().
Definition at line 700 of file ldebug.cpp.
References luaG_runerror(), and luaT_objtypename().
Referenced by forlimit(), and forprep().
Definition at line 87 of file ldebug.cpp.
References ABSLINEINFO, getbaseline(), Proto::lineinfo, and lua_assert.
Referenced by changedline(), getcurrentline(), luaG_traceexec(), and nextline().
LUAI_FUNC l_noret luaG_opinterror | ( | lua_State * | L, |
const TValue * | p1, | ||
const TValue * | p2, | ||
const char * | msg | ||
) |
Definition at line 712 of file ldebug.cpp.
References luaG_typeerror(), and ttisnumber.
Referenced by luaT_trybinTM().
Definition at line 731 of file ldebug.cpp.
References luaG_runerror(), and luaT_objtypename().
Referenced by luaT_callorderTM().
Definition at line 767 of file ldebug.cpp.
References lua_State::ci, ci_func, getcurrentline(), isLua, luaC_checkGC, luaG_addinfo(), luaG_errormsg(), luaO_pushvfstring(), wfl::msg(), and Proto::source.
Referenced by findindex(), forprep(), lua_yieldk(), luaD_growstack(), luaE_checkcstack(), luaG_forerror(), luaG_ordererror(), luaG_tointerror(), luaG_typeerror(), luaH_newkey(), luaM_growaux_(), luaM_toobig(), luaO_pushvfstring(), luaV_concat(), luaV_finishget(), luaV_finishset(), luaV_idiv(), luaV_mod(), setnodevector(), and varerror().
Definition at line 723 of file ldebug.cpp.
References luaG_runerror(), tointegerns, and varinfo().
Referenced by luaT_trybinTM().
LUAI_FUNC int luaG_traceexec | ( | lua_State * | L, |
const Instruction * | pc | ||
) |
Definition at line 807 of file ldebug.cpp.
References CallInfo::callstatus, changedline(), lua_State::ci, ci_func, CIST_HOOKYIELD, lua_State::hookcount, lua_State::hookmask, invpcRel, isIT, CallInfo::l, LUA_HOOKCOUNT, LUA_HOOKLINE, LUA_MASKCOUNT, LUA_MASKLINE, LUA_YIELD, luaD_hook(), luaD_throw(), luaG_getfuncline(), lua_State::oldpc, pcRel, resethookcount, Proto::sizecode, lua_State::status, CallInfo::top, lua_State::top, and CallInfo::u.
Definition at line 694 of file ldebug.cpp.
References luaG_runerror(), luaT_objtypename(), t, and varinfo().
Referenced by luaD_tryfuncTM(), luaG_concaterror(), luaG_opinterror(), luaV_finishget(), luaV_finishset(), and luaV_objlen().