dbg(add): guard method to toggle assert at based at runtimemode

This commit is contained in:
Qingping Hou
2016-03-28 23:37:15 -07:00
parent dffc42d234
commit e3137134f8
6 changed files with 147 additions and 45 deletions

View File

@@ -21,8 +21,7 @@ local Input = require("device").input
Input.dummy = true
-- turn on debug
local DEBUG = require("dbg")
--DEBUG:turnOn()
--require("dbg"):turnOn()
function assertAlmostEquals(expected, actual, margin)
if type(actual) ~= 'number' or type(expected) ~= 'number'