webmcp
diff framework/env/trace/disable.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/disable.lua Sat Oct 16 17:51:18 2010 +0200 1.3 @@ -0,0 +1,10 @@ 1.4 +--[[-- 1.5 +trace.disable() 1.6 + 1.7 +This function disables the trace system. Re-enabling the trace system is not possible. 1.8 + 1.9 +--]]-- 1.10 + 1.11 +function trace.disable() 1.12 + trace._disabled = true 1.13 +end