|
@@ -527,10 +527,12 @@ let load_macro ctx display cpath f p =
|
|
meth
|
|
meth
|
|
in
|
|
in
|
|
let call args =
|
|
let call args =
|
|
|
|
+ if ctx.com.verbose then Common.log ctx.com ("Calling macro " ^ s_type_path cpath ^ "." ^ f ^ " (" ^ p.pfile ^ ":" ^ string_of_int (Lexer.get_error_line p) ^ ")");
|
|
let t = macro_timer ctx ["execution";s_type_path cpath ^ "." ^ f] in
|
|
let t = macro_timer ctx ["execution";s_type_path cpath ^ "." ^ f] in
|
|
incr stats.s_macros_called;
|
|
incr stats.s_macros_called;
|
|
let r = Interp.call_path (Interp.get_ctx()) ((fst cpath) @ [(match sub with None -> snd cpath | Some s -> s)]) f args api in
|
|
let r = Interp.call_path (Interp.get_ctx()) ((fst cpath) @ [(match sub with None -> snd cpath | Some s -> s)]) f args api in
|
|
t();
|
|
t();
|
|
|
|
+ if ctx.com.verbose then Common.log ctx.com ("Exiting macro " ^ s_type_path cpath ^ "." ^ f);
|
|
r
|
|
r
|
|
in
|
|
in
|
|
mctx, meth, call
|
|
mctx, meth, call
|