diff options
Diffstat (limited to 'lualibs-table.lua')
-rw-r--r-- | lualibs-table.lua | 4 |
1 files changed, 3 insertions, 1 deletions
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 -- -- -- |