diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-25 09:20:29 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-11-25 09:20:29 -0200 |
commit | b8a680c11452b9e305b66400952f3bf702bf2dd5 (patch) | |
tree | cae31229ca7dc5015b26b2d4623f238ac525e105 | |
parent | 709b27b4564f3e4df22b973649f202fd5bb7a04a (diff) | |
download | lua-b8a680c11452b9e305b66400952f3bf702bf2dd5.tar.gz lua-b8a680c11452b9e305b66400952f3bf702bf2dd5.tar.bz2 lua-b8a680c11452b9e305b66400952f3bf702bf2dd5.zip |
resets hook count even in case of errors
-rw-r--r-- | lvm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.267 2002/11/21 15:46:44 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.268 2002/11/21 17:19:42 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -64,8 +64,8 @@ static void traceexec (lua_State *L) { | |||
64 | lu_byte mask = L->hookmask; | 64 | lu_byte mask = L->hookmask; |
65 | if (mask > LUA_MASKLINE) { /* instruction-hook set? */ | 65 | if (mask > LUA_MASKLINE) { /* instruction-hook set? */ |
66 | if (L->hookcount == 0) { | 66 | if (L->hookcount == 0) { |
67 | luaD_callhook(L, LUA_HOOKCOUNT, -1); | ||
68 | resethookcount(L); | 67 | resethookcount(L); |
68 | luaD_callhook(L, LUA_HOOKCOUNT, -1); | ||
69 | return; | 69 | return; |
70 | } | 70 | } |
71 | } | 71 | } |