diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-09-19 10:57:50 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-09-19 10:57:50 -0300 |
commit | d1ef7e0ec6f0b3c40a4abedb3f79a3eaabe01631 (patch) | |
tree | 38a4baf7abb3c0683fb4d0e5b527d210f7077210 /ldebug.c | |
parent | d513c3c66b3c71412d87a3f24b8f792b7b728e93 (diff) | |
download | lua-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |