2 ** $Id: ldebug.h,v 2.14.1.1 2017/04/19 17:20:42 roberto Exp $
3 ** Auxiliary functions from Debug Interface module
4 ** See Copyright Notice in lua.h
14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
16 #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : -1)
18 #define resethookcount(L) (L->hookcount = L->basehookcount)
21 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
23 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, const TValue *p1,
25 LUAI_FUNC l_noret luaG_opinterror (lua_State *L, const TValue *p1,
28 LUAI_FUNC l_noret luaG_tointerror (lua_State *L, const TValue *p1,
30 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
32 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
33 LUAI_FUNC const char *luaG_addinfo (lua_State *L, const char *msg,
34 TString *src, int line);
35 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
36 LUAI_FUNC void luaG_traceexec (lua_State *L);