|
|
@ -176,15 +176,11 @@ local function print_element(k, v)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function printall(table)
|
|
|
|
function printall(table)
|
|
|
|
if not safe_iterate(table, pairs, print_element) then
|
|
|
|
safe_iterate(table, pairs, print_element)
|
|
|
|
dfhack.println(tostring(table))
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
function printall_ipairs(table)
|
|
|
|
function printall_ipairs(table)
|
|
|
|
if not safe_iterate(table, ipairs, print_element) then
|
|
|
|
safe_iterate(table, ipairs, print_element)
|
|
|
|
dfhack.println(tostring(table))
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
local do_print_recurse
|
|
|
|
local do_print_recurse
|
|
|
|