From d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 19 Sep 2006 10:57:50 -0300 Subject: avoid local "pc" in interpreter loop (tricky optimization with no real gain) --- ldebug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ldebug.c') diff --git a/ldebug.c b/ldebug.c index 8b482195..0f30c2a7 100644 --- a/ldebug.c +++ b/ldebug.c @@ -1,5 +1,5 @@ /* -** $Id: ldebug.c,v 2.31 2006/08/07 19:04:06 roberto Exp roberto $ +** $Id: ldebug.c,v 2.32 2006/09/11 14:07:24 roberto Exp roberto $ ** Debug Interface ** See Copyright Notice in lua.h */ @@ -58,6 +58,7 @@ LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) { mask = 0; func = NULL; } + L->oldpc = L->savedpc; L->hook = func; L->basehookcount = count; resethookcount(L); -- cgit v1.2.3-55-g6feb