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

@@ -257,7 +257,7 @@ function adjustKeyEvents(ev)
end
end
-- This should not happen.
debug("# Unrecognizable rotation mode "..Screen.cur_rotation_mode.."!")
Debug("# Unrecognizable rotation mode "..Screen.cur_rotation_mode.."!")
return nil
end
@@ -267,7 +267,7 @@ function input.saveWaitForEvent(timeout)
while retry do
local ok, ev = pcall(input.waitForEvent, timeout)
if not ok then
debug("got error waiting for events:", ev)
Debug("got error waiting for events:", ev)
if ev == "Waiting for input failed: 4\n" then
-- EINTR, we got interrupted. Try and restart
retry = true