Imported from ../lua-5.0.3.tar.gz.
[lua.git] / src / ldebug.h
blob7ff395839ccf17b1fe534e5baead8685e1af53b0
1 /*
2 ** $Id: ldebug.h,v 1.32 2002/11/18 11:01:55 roberto Exp $
3 ** Auxiliary functions from Debug Interface module
4 ** See Copyright Notice in lua.h
5 */
7 #ifndef ldebug_h
8 #define ldebug_h
11 #include "lstate.h"
14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
16 #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
18 #define resethookcount(L) (L->hookcount = L->basehookcount)
21 void luaG_inithooks (lua_State *L);
22 void luaG_typeerror (lua_State *L, const TObject *o, const char *opname);
23 void luaG_concaterror (lua_State *L, StkId p1, StkId p2);
24 void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2);
25 int luaG_ordererror (lua_State *L, const TObject *p1, const TObject *p2);
26 void luaG_runerror (lua_State *L, const char *fmt, ...);
27 void luaG_errormsg (lua_State *L);
28 int luaG_checkcode (const Proto *pt);
31 #endif