webmcp

diff framework/env/trace/enter_view.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_view.lua	Sun Oct 25 12:00:00 2009 +0100
     1.3 @@ -0,0 +1,21 @@
     1.4 +--[[--
     1.5 +trace.enter_view{
     1.6 +  module = module, 
     1.7 +  view   = view
     1.8 +}
     1.9 +
    1.10 +This function is used by execute.view and logs the call of a view.
    1.11 +
    1.12 +--]]--
    1.13 +
    1.14 +function trace.enter_view(args)
    1.15 +  local module = args.module
    1.16 +  local view   = args.view
    1.17 +  if type(module) ~= "string" then
    1.18 +    error("No module passed to trace.enter_view{...}.")
    1.19 +  end
    1.20 +  if type(view) ~= "string" then
    1.21 +    error("No view passed to trace.enter_view{...}.")
    1.22 +  end
    1.23 +  trace._open_section{ type = "view", module = module, view = view }
    1.24 +end

Impressum / About Us