mirror of
https://forgejo.merr.is/annika/KittenDismount.git
synced 2025-12-11 15:41:01 -05:00
15 lines
320 B
Lua
15 lines
320 B
Lua
|
|
function KittenDismount_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..'] = ' .. KittenDismount_dump(v) .. ','
|
||
|
|
end
|
||
|
|
return s .. '} '
|
||
|
|
else
|
||
|
|
return tostring(o)
|
||
|
|
end
|
||
|
|
end
|