perform function metatable calls outside of current stack frame.

This commit is contained in:
James Roseborough
2008-05-23 18:43:56 +00:00
parent 5b1913d839
commit 6e03c38e39

View File

@@ -930,10 +930,11 @@ public class LuaState extends Lua {
}
}
if (h.isFunction()) {
LFunction f = (LFunction) h;
int oldtop = top;
int oldbase = base;
try {
base = base + this.calls[cc].closure.p.maxstacksize;
top = base;
pushlvalue(h);
pushlvalue(table);
pushlvalue(key);
@@ -972,10 +973,11 @@ public class LuaState extends Lua {
}
}
if (h.isFunction()) {
LFunction f = (LFunction) h;
int oldtop = top;
int oldbase = base;
try {
base = base + this.calls[cc].closure.p.maxstacksize;
top = base;
pushlvalue(h);
pushlvalue(table);
pushlvalue(key);