Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

… does.
  • Loading branch information...
commit 1fdda940b30b71e18cc465029ef155eb8e29dc74 1 parent 5babb5f
@rrthomas rrthomas authored
Showing with 5 additions and 4 deletions.
  1. +3 −2 src/debug_ext.lua
  2. +2 −2 src/debug_init.lua
View
5 src/debug_ext.lua
@@ -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
4 src/debug_init.lua
@@ -1,2 +1,2 @@
--- Debugging is off by default
-_G._DEBUG = _G._DEBUG or false
+-- Debugging is on by default
+_G._DEBUG = true
Please sign in to comment.
Something went wrong with that request. Please try again.