aboutsummaryrefslogtreecommitdiff
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-8e4ac679ffce4a2d59b0a404473275411854f598.tar.gz
lua-8e4ac679ffce4a2d59b0a404473275411854f598.tar.bz2
lua-8e4ac679ffce4a2d59b0a404473275411854f598.zip
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 @@
1/* 1/*
2** $Id: ldebug.h,v 1.28 2002/08/06 18:01:50 roberto Exp roberto $ 2** $Id: ldebug.h,v 1.29 2002/08/08 20:08:41 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,8 +15,7 @@
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) \ 18#define resethookcount(L) (L->hookcount = lua_getmaskcount(L->hookmask))
19 (L->hookcount = lua_getmaskcount(L->hookmask), L->hookcount *= L->hookcount)
20 19
21#define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond)) 20#define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond))
22#define allowhook(L) ((L->hookmask) & 1) 21#define allowhook(L) ((L->hookmask) & 1)