summaryrefslogtreecommitdiff
path: root/src/lvm.c
diff options
context:
space:
mode:
authorLua Team <team@lua.org>2004-03-17 12:00:00 +0000
committerrepogen <>2004-03-17 12:00:00 +0000
commite7731a8fb8a317aa5c444ef073bfad82fa5baa54 (patch)
tree75b630332e6cdce8b40acf3282e1e8eee27b579e /src/lvm.c
parent72286a8eeb927e1a33f24e9d99bb37ec5343ad45 (diff)
downloadlua-github-5.0.2.tar.gz
Lua 5.0.25.0.2
Diffstat (limited to 'src/lvm.c')
-rw-r--r--src/lvm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lvm.c b/src/lvm.c
index 18005d03..94e2802d 100644
--- a/src/lvm.c
+++ b/src/lvm.c
@@ -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) {
}
}
+