diff options
Diffstat (limited to 'ldebug.h')
-rw-r--r-- | ldebug.h | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.h,v 1.30 2002/08/12 17:23:12 roberto Exp roberto $ | 2 | ** $Id: ldebug.h,v 1.31 2002/08/20 20:03:05 roberto Exp roberto $ |
3 | ** Auxiliary functions from Debug Interface module | 3 | ** Auxiliary functions from Debug Interface module |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -15,12 +15,10 @@ | |||
15 | 15 | ||
16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) | 16 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) |
17 | 17 | ||
18 | #define resethookcount(L) (L->hookcount = lua_getmaskcount(L->hookmask)) | 18 | #define resethookcount(L) (L->hookcount = L->basehookcount) |
19 | |||
20 | #define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond)) | ||
21 | #define allowhook(L) ((L->hookmask) & 1) | ||
22 | 19 | ||
23 | 20 | ||
21 | void luaG_inithooks (lua_State *L); | ||
24 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); | 22 | void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); |
25 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); | 23 | void luaG_concaterror (lua_State *L, StkId p1, StkId p2); |
26 | void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2); | 24 | void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2); |