anything weird.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8844 c06c8d41-db1a-0410-9941-cceddc491573
PK2ANIIHJ4EUTG3ZWM3MK32YLGXLOETZ47L7KNC7YYJ7O7GAFLBAC
IAAY47RTSNN4FGR4BUNW6DOE2FX3JRRWXEPWJEAVJPG4WMGO3MOQC
6TAQWWURX3QF4XXV7YGJEL5VKFLFEB2HV2PGJ5ARYNNRRRNVTFUAC
NKONHW4JNY6HP2M63MNPM3H64ZWSUNUT5FX2STW4KTS4AMXJXXVQC
if type(table) ~= "table" then return indent .. "['" .. type(table) .. "', not a table]" end
if type(table) ~= "table" then
return indent .. "['" .. type(table) .. "', not a table]"
end
str = str .. indent .. "CLASS: " .. meta.CLASS .. "\n"
str = str .. indent .. "CLASS: " if type (meta.CLASS) == "string" then str = str .. meta.CLASS .. "\n" else str = str .. "[type " .. type(meta.CLASS) .. "]\n" end
str = str .. indent .. "CLASS: "
if type (meta.CLASS) == "string" then
str = str .. meta.CLASS .. "\n"
else
str = str .. "[type " .. type(meta.CLASS) .. "]\n"
str = str .. indent .. key .. ": "
local typ = type(key) if typ == "string" or typ == "number" then str = str .. indent .. key .. ": " else str = str .. indent .. "[type " .. typ .. "]: " end
local typ = type(key)
if typ == "string" or typ == "number" then
str = str .. indent .. "[type " .. typ .. "]: "
if type(value) == "table" then
typ = type(value) if typ == "table" then
typ = type(value)
if typ == "table" then
elseif type(value) == "function" then str = str .. "function" else
elseif type(value) == "function" then
str = str .. "function"
elseif typ == "number" or typ == "string" or typ == "boolen" then
else str = str .. "[type " .. typ .. "]"
str = str .. "[type " .. typ .. "]"