rpm  4.5
ldebug.h
Go to the documentation of this file.
1 /*
2 ** $Id: ldebug.h,v 1.1 2004/03/16 21:58:30 niemeyer Exp $
3 ** Auxiliary functions from Debug Interface module
4 ** See Copyright Notice in lua.h
5 */
6 
7 #ifndef ldebug_h
8 #define ldebug_h
9 
10 
11 #include "lstate.h"
12 
13 
14 #define pcRel(pc, p) (cast(int, (pc) - (p)->code) - 1)
15 
16 #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0)
17 
18 #define resethookcount(L) (L->hookcount = L->basehookcount)
19 
20 
21 void luaG_inithooks (lua_State *L)
22  /*@modifies L @*/;
23 void luaG_typeerror (lua_State *L, const TObject *o, const char *opname)
24  /*@modifies L @*/;
25 void luaG_concaterror (lua_State *L, StkId p1, StkId p2)
26  /*@modifies L @*/;
27 void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2)
28  /*@modifies L @*/;
29 int luaG_ordererror (lua_State *L, const TObject *p1, const TObject *p2)
30  /*@modifies L @*/;
31 void luaG_runerror (lua_State *L, const char *fmt, ...)
32  /*@modifies L @*/;
33 void luaG_errormsg (lua_State *L)
34  /*@modifies L @*/;
35 int luaG_checkcode (const Proto *pt)
36  /*@*/;
37 
38 
39 #endif