From ebc346f535472bc0f5075dac48040ea5ecc40232 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Sat, 24 Jan 2004 12:34:41 +0000 Subject: [PATCH] debug_print --- helm/gTopLevel/texTermEditor.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/helm/gTopLevel/texTermEditor.ml b/helm/gTopLevel/texTermEditor.ml index b89974d71..b5dea9816 100644 --- a/helm/gTopLevel/texTermEditor.ml +++ b/helm/gTopLevel/texTermEditor.ml @@ -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 -- 2.39.2