src/Pure/ML-Systems/polyml.ML
changeset 59470 31d810570879
parent 59468 fe6651760643
child 60729 f5989a2c1f67
equal deleted inserted replaced
59469:fb393ecde29d 59470:31d810570879
    51 
    51 
    52 exception Interrupt = SML90.Interrupt;
    52 exception Interrupt = SML90.Interrupt;
    53 
    53 
    54 use "General/exn.ML";
    54 use "General/exn.ML";
    55 
    55 
       
    56 fun print_exception_trace (_: exn -> string) (_: string -> unit) = PolyML.exception_trace;
       
    57 
       
    58 if ML_System.name = "polyml-5.5.1"
       
    59   orelse ML_System.name = "polyml-5.5.2"
       
    60   orelse ML_System.name = "polyml-5.5.3"
       
    61 then use "ML-Systems/exn_trace_polyml-5.5.1.ML"
       
    62 else ();
       
    63 
    56 
    64 
    57 (* multithreading *)
    65 (* multithreading *)
    58 
    66 
    59 val seconds = Time.fromReal;
    67 val seconds = Time.fromReal;
    60 
    68 
    96 fun quit () = exit 0;
   104 fun quit () = exit 0;
    97 
   105 
    98 
   106 
    99 (* ML runtime system *)
   107 (* ML runtime system *)
   100 
   108 
   101 fun print_exception_trace (_: exn -> string) (_: string -> unit) = PolyML.exception_trace;
       
   102 val timing = PolyML.timing;
   109 val timing = PolyML.timing;
   103 val profiling = PolyML.profiling;
   110 val profiling = PolyML.profiling;
   104 
   111 
   105 fun profile 0 f x = f x
   112 fun profile 0 f x = f x
   106   | profile n f x =
   113   | profile n f x =