#include "lstate.h"Go to the source code of this file.
Defines | |
| #define | pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1) |
| #define | getline(f, pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) |
| #define | resethookcount(L) (L->hookcount = L->basehookcount) |
Functions | |
| LUAI_FUNC void | luaG_typeerror (lua_State *L, const TValue *o, const char *opname) |
| LUAI_FUNC void | luaG_concaterror (lua_State *L, StkId p1, StkId p2) |
| LUAI_FUNC void | luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) |
| LUAI_FUNC int | luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) |
| LUAI_FUNC void | luaG_runerror (lua_State *L, const char *fmt,...) |
| LUAI_FUNC void | luaG_errormsg (lua_State *L) |
| LUAI_FUNC int | luaG_checkcode (const Proto *pt) |
| LUAI_FUNC int | luaG_checkopenop (Instruction i) |
| #define resethookcount | ( | L | ) | (L->hookcount = L->basehookcount) |
Definition at line 18 of file ldebug.h.
Referenced by lua_sethook(), luaE_newthread(), preinit_state(), and traceexec().
| LUAI_FUNC int luaG_checkcode | ( | const Proto * | pt | ) |
| LUAI_FUNC int luaG_checkopenop | ( | Instruction | i | ) |
Definition at line 290 of file ldebug.cpp.
References check, GET_OPCODE, GETARG_B, OP_CALL, OP_RETURN, OP_SETLIST, and OP_TAILCALL.
| LUAI_FUNC void luaG_errormsg | ( | lua_State * | L | ) |
Definition at line 602 of file ldebug.cpp.
References lua_State::errfunc, incr_top, LUA_ERRERR, LUA_ERRRUN, luaD_call(), luaD_throw(), restorestack, setobjs2s, lua_State::top, and ttisfunction.
| LUAI_FUNC void luaG_runerror | ( | lua_State * | L, | |
| const char * | fmt, | |||
| ... | ||||
| ) |
Definition at line 615 of file ldebug.cpp.
References addinfo(), luaG_errormsg(), and luaO_pushvfstring().
Definition at line 551 of file ldebug.cpp.
References lua_State::base, cast_int, lua_State::ci, getobjname(), isinstack(), LUA_QS, luaG_runerror(), luaT_typenames, NULL, and ttype.
1.5.3