public static void copyTable(LuaValue src, LuaValue dst) { LuaValue k = LuaValue.NIL; while (true) { Varargs n = src.next(k); if ((k = n.arg1()).isnil()) break; dst.set(k, n.arg(2)); } }
public static void clearTable(LuaValue table) { LuaValue k = LuaValue.NIL; while (true) { Varargs n = table.next(k); if ((k = n.arg1()).isnil()) break; table.set(k, LuaValue.NIL); } }
static Text obj(Varargs args) { return convert(args.arg1()).getObject(); }