rename debug() to Debug() to stop clashing with the debug submodule from Lua

This commit is contained in:
HW
2012-06-04 00:49:23 +02:00
parent ccd91b58e3
commit 0d12ff70cd
19 changed files with 134 additions and 115 deletions

View File

@@ -42,7 +42,7 @@ function DocSettings:open(docfile)
end
if stored.version < 2012.05 then
debug("settings", docfile, stored)
Debug("settings", docfile, stored)
if stored.jumpstack ~= nil then
stored.jump_history = stored.jumpstack
stored.jumpstack = nil
@@ -64,7 +64,7 @@ function DocSettings:open(docfile)
end
end
stored.version = 2012.05
debug("upgraded", stored)
Debug("upgraded", stored)
end
new.data = stored
@@ -90,8 +90,9 @@ function dump(data)
return table.concat(out)
end
function debug(...)
function Debug(...)
local line = ""
local arg = {...}
for i,v in ipairs(arg) do
if type(v) == "table" then
line = line .. " " .. dump(v)