src/Pure/ML-Systems/polyml.ML
changeset 50909 b2fb1ab1475d
parent 48416 5787e1c911d0
child 50910 54f06ba192ef
equal deleted inserted replaced
50905:db99fcf69761 50909:b2fb1ab1475d
     9 fun reraise exn =
     9 fun reraise exn =
    10   (case PolyML.exceptionLocation exn of
    10   (case PolyML.exceptionLocation exn of
    11     NONE => raise exn
    11     NONE => raise exn
    12   | SOME location => PolyML.raiseWithLocation (exn, location));
    12   | SOME location => PolyML.raiseWithLocation (exn, location));
    13 
    13 
    14 fun set_exn_serial i exn =
    14 fun set_exn_serial i exn = (*requires uninterruptible*)
    15   let
    15   let
    16     val (file, startLine, endLine) =
    16     val (file, startLine, endLine) =
    17       (case PolyML.exceptionLocation exn of
    17       (case PolyML.exceptionLocation exn of
    18         NONE => ("", 0, 0)
    18         NONE => ("", 0, 0)
    19       | SOME {file, startLine, endLine, startPosition, ...} => (file, startLine, endLine));
    19       | SOME {file, startLine, endLine, startPosition, ...} => (file, startLine, endLine));