25 lines
518 B
Lua
25 lines
518 B
Lua
|
|
function printTable(input)
|
|
if type(input) ~= 'table' then
|
|
print(input)
|
|
return
|
|
end
|
|
|
|
for k, v in pairs(input) do
|
|
if type(v) == 'table' then
|
|
print(k .. ' = ')
|
|
printTable(v)
|
|
else
|
|
print(k .. ' = ', v, type(v))
|
|
end
|
|
end
|
|
end
|
|
|
|
function test(...)
|
|
print('Called test with ' .. select('#', ...) .. ' arguments: ' .. table.concat({...}, ', '))
|
|
end
|
|
|
|
print(collectgarbage('count') * 1024)
|
|
--printTable(select(1, ...))
|
|
--print('hello!')
|