Refactor table library to match lua 5.2

This commit is contained in:
James Roseborough
2012-09-10 04:59:45 +00:00
parent 6ba1f86b7b
commit f8b7e1ee1c
9 changed files with 125 additions and 74 deletions

View File

@@ -198,6 +198,8 @@ public class lua {
}
private static Varargs setGlobalArg(String chunkname, String[] args, int i, LuaValue _G) {
if (args == null)
return LuaValue.NONE;
LuaTable arg = LuaValue.tableOf();
for ( int j=0; j<args.length; j++ )
arg.set( j-i, LuaValue.valueOf(args[j]) );