jbe/bsw@0: --[[-- jbe/bsw@0: trace.enter_action{ jbe/bsw@0: module = module, jbe/bsw@0: action = action jbe/bsw@0: } jbe/bsw@0: jbe/bsw@0: This function is used by execute.action and logs the call of an action. jbe/bsw@0: jbe/bsw@0: --]]-- jbe/bsw@0: jbe/bsw@0: function trace.enter_action(args) jbe@41: if not trace._disabled then jbe@41: local module = args.module jbe@41: local action = args.action jbe@41: if type(module) ~= "string" then jbe@41: error("No module string passed to trace.enter_action{...}.") jbe@41: end jbe@41: if type(action) ~= "string" then jbe@41: error("No action string passed to trace.enter_action{...}.") jbe@41: end jbe@41: trace._open_section{ type = "action", module = module, action = action } jbe/bsw@0: end jbe/bsw@0: end