summaryrefslogtreecommitdiff
path: root/ldebug.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-19 10:57:50 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2006-09-19 10:57:50 -0300
commitd1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631 (patch)
tree38a4baf7abb3c0683fb4d0e5b527d210f7077210 /ldebug.c
parentd513c3c66b3c71412d87a3f24b8f792b7b728e93 (diff)
downloadlua-d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631.tar.gz
lua-d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631.tar.bz2
lua-d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631.zip
avoid local "pc" in interpreter loop (tricky optimization with no real gain)
Diffstat (limited to 'ldebug.c')
-rw-r--r--ldebug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ldebug.c b/ldebug.c
index 8b482195..0f30c2a7 100644
--- a/ldebug.c
+++ b/ldebug.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: ldebug.c,v 2.31 2006/08/07 19:04:06 roberto Exp roberto $ 2** $Id: ldebug.c,v 2.32 2006/09/11 14:07:24 roberto Exp roberto $
3** Debug Interface 3** Debug Interface
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -58,6 +58,7 @@ LUA_API int lua_sethook (lua_State *L, lua_Hook func, int mask, int count) {
58 mask = 0; 58 mask = 0;
59 func = NULL; 59 func = NULL;
60 } 60 }
61 L->oldpc = L->savedpc;
61 L->hook = func; 62 L->hook = func;
62 L->basehookcount = count; 63 L->basehookcount = count;
63 resethookcount(L); 64 resethookcount(L);