mesecons_x/mesecons_autotools/debug.lua
Deet Mit 68aadf9953 fix
2020-09-04 16:21:35 +02:00

17 lines
294 B
Lua

-- Debug
function dump(o)
if type(o) == 'table' then
local s = '{ '
for k,v in pairs(o) do
if type(k) ~= 'number' then k = '"'..k..'"' end
s = s .. '['..k..'] = ' .. dump(v) .. ','
end
return s .. '} '
else
return tostring(o)
end
end