diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-08 17:22:08 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-07-08 17:22:08 -0300 |
commit | 44752fc9ce2588a9b402d335c87660a9ee28a157 (patch) | |
tree | 824f78c6256f46d25dbeab117a5bfcca0bbfb67a /ldebug.h | |
parent | 39b2d58c39fd0cd554b27ed071926bc439338964 (diff) | |
download | lua-44752fc9ce2588a9b402d335c87660a9ee28a157.tar.gz lua-44752fc9ce2588a9b402d335c87660a9ee28a157.tar.bz2 lua-44752fc9ce2588a9b402d335c87660a9ee28a157.zip |
hook count is quadratic
Diffstat (limited to 'ldebug.h')
-rw-r--r-- | ldebug.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.h,v 1.23 2002/06/24 15:07:21 roberto Exp roberto $ | 2 | ** $Id: ldebug.h,v 1.24 2002/07/08 18:21:33 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 | */ |
@@ -17,7 +17,7 @@ | |||
17 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) | 17 | #define getline(f,pc) (((f)->lineinfo) ? (f)->lineinfo[pc] : 0) |
18 | 18 | ||
19 | #define resethookcount(L) \ | 19 | #define resethookcount(L) \ |
20 | (L->hookcount = (1 << lua_getmaskcount(L->hookmask)) >> 1) | 20 | (L->hookcount = lua_getmaskcount(L->hookmask), L->hookcount *= L->hookcount) |
21 | 21 | ||
22 | #define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond)) | 22 | #define setallowhook(L,cond) ((L->hookmask) = ((L->hookmask) & ~1) | (cond)) |
23 | #define allowhook(L) ((L->hookmask) & 1) | 23 | #define allowhook(L) ((L->hookmask) & 1) |