src/Pure/Tools/codegen_thingol.ML
changeset 20405 8276fd8d1919
parent 20389 8b6ecb22ef35
child 20428 67fa1c6ba89e
equal deleted inserted replaced
20404:1a29e6c3ab04 20405:8276fd8d1919
   114 struct
   114 struct
   115 
   115 
   116 (** auxiliary **)
   116 (** auxiliary **)
   117 
   117 
   118 val debug = ref false;
   118 val debug = ref false;
   119 fun debug_msg f x = (if !debug then Output.debug (f x) else (); x);
   119 fun debug_msg f x = (if !debug then Output.tracing (f x) else (); x);
   120 val soft_exc = ref true;
   120 val soft_exc = ref true;
   121 
   121 
   122 fun unfoldl dest x =
   122 fun unfoldl dest x =
   123   case dest x
   123   case dest x
   124    of NONE => (x, [])
   124    of NONE => (x, [])