]> matita.cs.unibo.it Git - helm.git/blobdiff - matita/matitaMisc.ml
more work for the release
[helm.git] / matita / matitaMisc.ml
index 0c4329e554350936ea863f1c2e581e13df8ca5d9..266aec526920ad8d96bda49f7cca4cd0d29a2861 100644 (file)
@@ -150,3 +150,9 @@ let list_tl_at ?(equality=(==)) e l =
     | hd :: tl -> aux tl
   in
   aux l
+
+let shutup () = 
+  HLog.set_log_callback (fun _ _ -> ());
+  let out = open_out "/dev/null" in
+  Unix.dup2 (Unix.descr_of_out_channel out) (Unix.descr_of_out_channel stderr)
+