diff options
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 1.76 1999/12/27 17:33:22 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.77 1999/12/29 16:31:15 roberto Exp roberto $ |
3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -297,6 +297,8 @@ StkId luaV_execute (lua_State *L, const Closure *cl, const TProtoFunc *tf, | |||
297 | register StkId top; /* keep top local, for performance */ | 297 | register StkId top; /* keep top local, for performance */ |
298 | register const Byte *pc = tf->code; | 298 | register const Byte *pc = tf->code; |
299 | const TObject *consts = tf->consts; | 299 | const TObject *consts = tf->consts; |
300 | if (L->callhook) | ||
301 | luaD_callHook(L, base-1, L->callhook, 0); | ||
300 | luaD_checkstack(L, (*pc++)+EXTRA_STACK); | 302 | luaD_checkstack(L, (*pc++)+EXTRA_STACK); |
301 | if (*pc < ZEROVARARG) | 303 | if (*pc < ZEROVARARG) |
302 | luaD_adjusttop(L, base, *(pc++)); | 304 | luaD_adjusttop(L, base, *(pc++)); |