From 43013b39cc28e873e18207e8e7259b6b90fed06b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 18 Nov 2002 09:01:55 -0200 Subject: new representation for hooks (to allow asynchronous calls to sethook) --- ldebug.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ldebug.h') diff --git a/ldebug.h b/ldebug.h index e0d0a097..417bd47d 100644 --- a/ldebug.h +++ b/ldebug.h @@ -1,5 +1,5 @@ /* -** $Id: ldebug.h,v 1.30 2002/08/12 17:23:12 roberto Exp roberto $ +** $Id: ldebug.h,v 1.31 2002/08/20 20:03:05 roberto Exp roberto $ ** Auxiliary functions from Debug Interface module ** See Copyright Notice in lua.h */ @@ -15,12 +15,10 @@ #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) -#define resethookcount(L) (L->hookcount = lua_getmaskcount(L->hookmask)) - -#define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond)) -#define allowhook(L) ((L->hookmask) & 1) +#define resethookcount(L) (L->hookcount = L->basehookcount) +void luaG_inithooks (lua_State *L); void luaG_typeerror (lua_State *L, const TObject *o, const char *opname); void luaG_concaterror (lua_State *L, StkId p1, StkId p2); void luaG_aritherror (lua_State *L, const TObject *p1, const TObject *p2); -- cgit v1.2.3-55-g6feb