webmcp
diff framework/env/trace/is_disabled.lua @ 41:0bbfee4d4aed
New functions trace.disable() and trace.is_disabled()
author | jbe |
---|---|
date | Sat Oct 16 17:51:18 2010 +0200 (2010-10-16) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/framework/env/trace/is_disabled.lua Sat Oct 16 17:51:18 2010 +0200 1.3 @@ -0,0 +1,11 @@ 1.4 +--[[-- 1.5 +disabled = -- boolean indicating if trace system is disabled 1.6 +trace.is_disabled() 1.7 + 1.8 +This function returns true, if the trace system has been disabled. Otherwise false is returned. 1.9 + 1.10 +--]]-- 1.11 + 1.12 +function trace.is_disabled() 1.13 + return trace._disabled 1.14 +end