equal
deleted
inserted
replaced
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)); |