webmcp
diff framework/env/trace/enter_filter.lua @ 0:9fdfb27f8e67
Version 1.0.0
author | jbe/bsw |
---|---|
date | Sun Oct 25 12:00:00 2009 +0100 (2009-10-25) |
parents | |
children | 0bbfee4d4aed |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/framework/env/trace/enter_filter.lua Sun Oct 25 12:00:00 2009 +0100 1.3 @@ -0,0 +1,16 @@ 1.4 +--[[-- 1.5 +trace.enter_filter{ 1.6 + path = path 1.7 +} 1.8 + 1.9 +This function logs the call of a filter, when using execute.filtered_view{...} and execute.filtered_action{...}. 1.10 + 1.11 +--]]-- 1.12 + 1.13 +function trace.enter_filter(args) 1.14 + local path = args.path 1.15 + if type(path) ~= "string" then 1.16 + error("No path string passed to trace.enter_filter{...}.") 1.17 + end 1.18 + trace._open_section{ type = "filter", path = path } 1.19 +end