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

@@ -114,7 +114,7 @@ local function split(t)
end
local function expand(argsets, typesets, ...)
local arg = {...} ; arg.n = #arg
local arg = table.pack(...)
local n = typesets and #typesets or 0
if n <= 0 then
table.insert(argsets,arg)