]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/matita/matitaMisc.ml
"include" command implemented.
[helm.git] / helm / matita / matitaMisc.ml
index ab077d9238d60d0dbb2ef14278fc160ada0277d9..1ea4e7e9228c52ffca09fcaa81b4a66e0b5be968 100644 (file)
@@ -191,7 +191,7 @@ let get_proof_context status =
   | _ -> []
  
 let get_proof_aliases status = status.aliases
-  
+
 let qualify status name = get_string_option status "baseuri" ^ "/" ^ name
 
 let unopt = function None -> failwith "unopt: None" | Some v -> v
@@ -207,4 +207,9 @@ let rec list_uniq = function
   | h1::h2::tl when h1 = h2 -> list_uniq (h2 :: tl) 
   | h1::tl (* when h1 <> h2 *) -> h1 :: list_uniq tl
 
-let end_ma_RE = Pcre.regexp "\\.ma$"
+let debug_wrap name f =
+  prerr_endline (sprintf "debug_wrap: ==>> %s" name);
+  let res = f () in
+  prerr_endline (sprintf "debug_wrap: <<== %s" name);
+  res
+