diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-29 11:02:17 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-29 11:02:17 -0200 |
commit | c766e4103db888063c4f928747afd6eb448e306f (patch) | |
tree | 9d6f8a73487283054f0c07f315b0bdd3eaa9657e /lvm.c | |
parent | 36aecd4548e5cafc3b6b7ab9f6045db866cf7d9a (diff) | |
download | lua-c766e4103db888063c4f928747afd6eb448e306f.tar.gz lua-c766e4103db888063c4f928747afd6eb448e306f.tar.bz2 lua-c766e4103db888063c4f928747afd6eb448e306f.zip |
'luaV_execute' gets call info as extra argument (it is always
available on call sites)
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lvm.c,v 2.319 2017/11/28 12:58:18 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 2.320 2017/11/28 14:51:00 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 | */ |
@@ -823,8 +823,7 @@ void luaV_finishOp (lua_State *L) { | |||
823 | #define vmbreak break | 823 | #define vmbreak break |
824 | 824 | ||
825 | 825 | ||
826 | void luaV_execute (lua_State *L) { | 826 | void luaV_execute (lua_State *L, CallInfo *ci) { |
827 | CallInfo *ci = L->ci; | ||
828 | LClosure *cl = clLvalue(s2v(ci->func)); | 827 | LClosure *cl = clLvalue(s2v(ci->func)); |
829 | TValue *k = cl->p->k; | 828 | TValue *k = cl->p->k; |
830 | StkId base = ci->func + 1; | 829 | StkId base = ci->func + 1; |