From 844c14f52cded1d445abe6834db5a449cd979a01 Mon Sep 17 00:00:00 2001 From: kikito Date: Sat, 11 Jan 2014 21:05:54 +0100 Subject: [PATCH] quick and dirty attempt at printing eLua romtables (no tests) --- inspect.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inspect.lua b/inspect.lua index 2be3a21..c6c0a89 100644 --- a/inspect.lua +++ b/inspect.lua @@ -208,7 +208,7 @@ function inspect.inspect(rootObject, options) local function putTable(t) if alreadyVisited(t) then - puts('') + puts('<', type(t), ' ', getId(t), '>') elseif level >= depth then puts('{...}') else @@ -271,7 +271,7 @@ function inspect.inspect(rootObject, options) puts(smartQuote(escape(v))) elseif tv == 'number' or tv == 'boolean' or tv == 'nil' then puts(tostring(v)) - elseif tv == 'table' then + elseif tv == 'table' or tv == 'romtable' then putTable(v) else puts('<',tv,' ',getId(v),'>')