From 43ffeea64e686e25807959575d07162bc8bb02b6 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Sun, 2 Feb 2014 10:08:08 +0100 Subject: sync with Context as of 2014-02-02 --- lualibs-table.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lualibs-table.lua') diff --git a/lualibs-table.lua b/lualibs-table.lua index f361f3d..c318c57 100644 --- a/lualibs-table.lua +++ b/lualibs-table.lua @@ -1006,7 +1006,9 @@ function table.print(t,...) end end -setinspector(function(v) if type(v) == "table" then serialize(print,v,"table") return true end end) +if setinspector then + setinspector(function(v) if type(v) == "table" then serialize(print,v,"table") return true end end) +end -- -- -- obsolete but we keep them for a while and might comment them later -- -- -- -- cgit v1.2.3