diff options
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); |
