]> matita.cs.unibo.it Git - helm.git/commitdiff
debug_print
authorStefano Zacchiroli <zack@upsilon.cc>
Sat, 24 Jan 2004 12:34:41 +0000 (12:34 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Sat, 24 Jan 2004 12:34:41 +0000 (12:34 +0000)
helm/gTopLevel/texTermEditor.ml

index b89974d7152ff94b2a8e7f8a0e4c32d43bfced7e..b5dea98164bb026c584c2979defa58fb9d46cf9f 100644 (file)
@@ -23,6 +23,9 @@
  * http://cs.unibo.it/helm/.
  *)
 
+let debug = true
+let debug_print s = if debug then prerr_endline s
+
 (******************************************************************************)
 (*                                                                            *)
 (*                               PROJECT HELM                                 *)
@@ -206,7 +209,7 @@ module Make(C:DisambiguateTypes.Callbacks) =
            | None -> None
          ) context
        in
-prerr_endline ("###CSC: " ^ (Mathml_editor.get_tex tex_editor)) ;
+        debug_print ("TexTermEditor: Raw Tex: " ^ (Mathml_editor.get_tex tex_editor)) ;
         let environment',metasenv,expr =
          Disambiguate'.disambiguate_term mqi_handle 
           context metasenv (Mathml_editor.get_tex tex_editor) !environment