Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007 #ifndef ldebug_h
00008 #define ldebug_h
00009
00010
00011 #include "lstate.h"
00012
00013
00014 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
00015
00016 #define getfuncline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
00017
00018 #define resethookcount(L) (L->hookcount = L->basehookcount)
00019
00020
00021 #define ci_func(ci) (clLvalue((ci)->func))
00022
00023
00024 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o,
00025 const char *opname);
00026 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2);
00027 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1,
00028 const TValue *p2);
00029 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1,
00030 const TValue *p2);
00031 LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
00032 LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
00033
00034 #endif