From b8a680c11452b9e305b66400952f3bf702bf2dd5 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Mon, 25 Nov 2002 09:20:29 -0200 Subject: [PATCH] resets hook count even in case of errors --- lvm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lvm.c b/lvm.c index c19d9933..82210ac1 100644 --- a/lvm.c +++ b/lvm.c @@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 1.267 2002/11/21 15:46:44 roberto Exp roberto $ +** $Id: lvm.c,v 1.268 2002/11/21 17:19:42 roberto Exp roberto $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -64,8 +64,8 @@ static void traceexec (lua_State *L) { lu_byte mask = L->hookmask; if (mask > LUA_MASKLINE) { /* instruction-hook set? */ if (L->hookcount == 0) { - luaD_callhook(L, LUA_HOOKCOUNT, -1); resethookcount(L); + luaD_callhook(L, LUA_HOOKCOUNT, -1); return; } }