Permalink
Browse files

Turn on debugging by default and tweak what the global debug function…

… does.
  • Loading branch information...
1 parent 5babb5f commit 1fdda940b30b71e18cc465029ef155eb8e29dc74 @rrthomas rrthomas committed Sep 12, 2012
Showing with 5 additions and 4 deletions.
  1. +3 −2 src/debug_ext.lua
  2. +2 −2 src/debug_init.lua
View
@@ -33,13 +33,14 @@ function say (n, ...)
end
---
--- debug.say is also available as the global function <code>debug</code>
+-- The global function <code>debug</code> is an abbreviation for
+-- <code>debug.say (1, ...)</code>
-- @class function
-- @name debug
-- @see say
getmetatable (_M).__call =
function (self, ...)
- say (...)
+ say (1, ...)
end
--- Trace function calls
View
@@ -1,2 +1,2 @@
--- Debugging is off by default
-_G._DEBUG = _G._DEBUG or false
+-- Debugging is on by default
+_G._DEBUG = true

0 comments on commit 1fdda94

Please sign in to comment.