diff options
author | Lua Team <team@lua.org> | 2004-03-17 12:00:00 +0000 |
---|---|---|
committer | repogen <> | 2004-03-17 12:00:00 +0000 |
commit | e7731a8fb8a317aa5c444ef073bfad82fa5baa54 (patch) | |
tree | 75b630332e6cdce8b40acf3282e1e8eee27b579e /src/lvm.c | |
parent | 72286a8eeb927e1a33f24e9d99bb37ec5343ad45 (diff) | |
download | lua-github-5.0.2.tar.gz |
Lua 5.0.25.0.2
Diffstat (limited to 'src/lvm.c')
-rw-r--r-- | src/lvm.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lvm.c,v 1.284a 2003/04/03 13:35:34 roberto Exp $ +** $Id: lvm.c,v 1.284b 2003/04/03 13:35:34 roberto Exp $ ** Lua virtual machine ** See Copyright Notice in lua.h */ @@ -399,8 +399,10 @@ StkId luaV_execute (lua_State *L) { TObject *k; const Instruction *pc; callentry: /* entry point when calling new functions */ - if (L->hookmask & LUA_MASKCALL) + if (L->hookmask & LUA_MASKCALL) { + L->ci->u.l.pc = &pc; luaD_callhook(L, LUA_HOOKCALL, -1); + } retentry: /* entry point when returning to old functions */ L->ci->u.l.pc = &pc; lua_assert(L->ci->state == CI_SAVEDPC || @@ -776,3 +778,4 @@ StkId luaV_execute (lua_State *L) { } } + |