src/Pure/ML/ml_context.ML
changeset 27878 1ba19c9edd18
parent 27874 f0364f1c0ecf
child 27895 e4f8763b971b
equal deleted inserted replaced
27877:af9f0adbab1f 27878:1ba19c9edd18
   161 
   161 
   162 val trace = ref false;
   162 val trace = ref false;
   163 
   163 
   164 fun eval_wrapper pr verbose pos txt =
   164 fun eval_wrapper pr verbose pos txt =
   165   let
   165   let
       
   166     val _ = Position.report Markup.ML_source pos;
   166     val struct_name =
   167     val struct_name =
   167       if Multithreading.available then "Isabelle" ^ serial_string ()
   168       if Multithreading.available then "Isabelle" ^ serial_string ()
   168       else "Isabelle";
   169       else "Isabelle";
   169     val ((env, body), env_ctxt) = eval_antiquotes struct_name (txt, pos) (Context.thread_data ());
   170     val ((env, body), env_ctxt) = eval_antiquotes struct_name (txt, pos) (Context.thread_data ());
   170     val _ = if ! trace then tracing (cat_lines [env, body]) else ();
   171     val _ = if ! trace then tracing (cat_lines [env, body]) else ();