From 8e4ac679ffce4a2d59b0a404473275411854f598 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 12 Aug 2002 14:23:12 -0300 Subject: use a linear count for count hook --- ldebug.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'ldebug.h') diff --git a/ldebug.h b/ldebug.h index fe9eb48a..19be8fee 100644 --- a/ldebug.h +++ b/ldebug.h @@ -1,5 +1,5 @@ /* -** $Id: ldebug.h,v 1.28 2002/08/06 18:01:50 roberto Exp roberto $ +** $Id: ldebug.h,v 1.29 2002/08/08 20:08:41 roberto Exp roberto $ ** Auxiliary functions from Debug Interface module ** See Copyright Notice in lua.h */ @@ -15,8 +15,7 @@ #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) -#define resethookcount(L) \ - (L->hookcount = lua_getmaskcount(L->hookmask), L->hookcount *= L->hookcount) +#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) -- cgit v1.2.1