Skip to content
Snippets Groups Projects
Commit 5ebabf88 authored by DarkGod's avatar DarkGod
Browse files

table.print can take a non table parameter

parent dc6a395e
No related branches found
No related tags found
No related merge requests found
......@@ -64,6 +64,7 @@ function table.max(t)
end
function table.print(src, offset, ret)
if type(src) ~= "table" then print("table.print has no table:", src) return end
offset = offset or ""
for k, e in pairs(src) do
-- Deep copy subtables, but not objects!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment