summaryrefslogtreecommitdiff
path: root/ldebug.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-12 14:23:12 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-12 14:23:12 -0300
commit8e4ac679ffce4a2d59b0a404473275411854f598 (patch)
tree8758db19adc160f2366d40f2d39287611a3d4279 /ldebug.h
parent221b5be7b78dc401d4fac49df534f7ff68c04d58 (diff)
downloadlua-github-8e4ac679ffce4a2d59b0a404473275411854f598.tar.gz
use a linear count for count hook
Diffstat (limited to 'ldebug.h')
-rw-r--r--ldebug.h5
1 files changed, 2 insertions, 3 deletions
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)