summaryrefslogtreecommitdiff
path: root/xmake/core/base/table.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-08-16 09:24:10 +0800
committerruki <[email protected]>2017-08-16 09:24:10 +0800
commit33aa01ea89adaac28b5cfd41a52e2fc54d978c63 (patch)
tree557dcc7ffe0f5076a9d01dcfc2607c9009c2f182 /xmake/core/base/table.lua
parent66299aec15e67cb7d96ecc580b29b3441b399dfa (diff)
improve table.dump
Diffstat (limited to 'xmake/core/base/table.lua')
-rw-r--r--xmake/core/base/table.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/core/base/table.lua b/xmake/core/base/table.lua
index eb1988cee..d1251ea1a 100644
--- a/xmake/core/base/table.lua
+++ b/xmake/core/base/table.lua
@@ -220,8 +220,10 @@ function table._dump(self, exclude, level)
io.write(" ")
end
io.write("}\n")
- else
+ elseif self ~= nil then
io.write("<" .. tostring(self) .. ">")
+ else
+ io.write("nil")
end
end
@@ -236,6 +238,9 @@ function table.dump(self, exclude, prefix)
-- dump it
table._dump(self, exclude, 0)
+ -- end
+ print("")
+
-- return it
return self
end