Let VarArgFunction instances register with Thread on invocation.

This commit is contained in:
James Roseborough
2009-11-03 19:12:48 +00:00
parent 3906ab0711
commit 1b66a91c95
4 changed files with 24 additions and 11 deletions

View File

@@ -254,7 +254,7 @@ public class JavaBytecodeGenerator {
nl = p.maxstacksize;
locals = new LocalVariableGen[nl];
// implement LuaValue.invoke(Varargs args)
// implement LuaValue.onInvoke(Varargs args)
init = new InstructionList();
il = new InstructionList();
mg = new MethodGen(
@@ -262,7 +262,7 @@ public class JavaBytecodeGenerator {
TYPE_VARARGS, // return type
new Type[] { TYPE_VARARGS }, // argument types
new String[] { "args" }, // arg names
"invoke", STR_LUAVALUE, // method, class
"onInvoke", STR_LUAVALUE, // method, class
il, cp);
factory = new InstructionFactory(cg);