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 getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
00017
00018 #define resethookcount(L) (L->hookcount = L->basehookcount)
00019
00020
00021 void luaG_inithooks (lua_State *L)
00022 ;
00023 void luaG_typeerror (lua_State *L, const TObject *o, const char *opname)
00024 ;
00025 void luaG_concaterror (lua_State *L, StkId p1, StkId p2)
00026 ;
00027 void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2)
00028 ;
00029 int luaG_ordererror (lua_State *L, const TObject *p1, const TObject *p2)
00030 ;
00031 void luaG_runerror (lua_State *L, const char *fmt, ...)
00032 ;
00033 void luaG_errormsg (lua_State *L)
00034 ;
00035 int luaG_checkcode (const Proto *pt)
00036 ;
00037
00038
00039 #endif