diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-12 14:23:12 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-08-12 14:23:12 -0300 |
commit | 8e4ac679ffce4a2d59b0a404473275411854f598 (patch) | |
tree | 8758db19adc160f2366d40f2d39287611a3d4279 /ldebug.h | |
parent | 221b5be7b78dc401d4fac49df534f7ff68c04d58 (diff) | |
download | lua-github-8e4ac679ffce4a2d59b0a404473275411854f598.tar.gz |
use a linear count for count hook
Diffstat (limited to 'ldebug.h')
-rw-r--r-- | ldebug.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |