14 #define pcRel(pc, p) (cast_int((pc) - (p)->code) - 1) 18 #define ci_func(ci) (clLvalue(s2v((ci)->func))) 21 #define resethookcount(L) (L->hookcount = L->basehookcount) 27 #define ABSLINEINFO (-0x80) 29 LUAI_FUNC
int luaG_getfuncline (
const Proto *f,
int pc);
30 LUAI_FUNC
const char *luaG_findlocal (lua_State *L, CallInfo *ci,
int n,
32 LUAI_FUNC l_noret luaG_typeerror (lua_State *L,
const TValue *o,
34 LUAI_FUNC l_noret luaG_forerror (lua_State *L,
const TValue *o,
36 LUAI_FUNC l_noret luaG_concaterror (lua_State *L,
const TValue *p1,
38 LUAI_FUNC l_noret luaG_opinterror (lua_State *L,
const TValue *p1,
41 LUAI_FUNC l_noret luaG_tointerror (lua_State *L,
const TValue *p1,
43 LUAI_FUNC l_noret luaG_ordererror (lua_State *L,
const TValue *p1,
45 LUAI_FUNC l_noret luaG_runerror (lua_State *L,
const char *fmt, ...);
46 LUAI_FUNC
const char *luaG_addinfo (lua_State *L,
const char *msg,
47 TString *src,
int line);
48 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
49 LUAI_FUNC
int luaG_traceexec (lua_State *L,
const Instruction *pc);