mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
dbg(add): guard method to toggle assert at based at runtimemode
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user