be silent if iteration fails for printall

develop
myk002 2021-08-14 17:18:34 -07:00
parent 51cc8df40c
commit 6d0f7e40a9
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 2 additions and 6 deletions

@ -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