3 (* This function is especially useful with lablgtk which intercepts
4 * the exception and forbid them to reach the toplevel, or with LFS
5 * where I can not allow any exception to stop mount.lfs.
7 * src: Jane Street Core library.
8 * update: Normally no more needed in OCaml 3.11 as part of the
11 external print
: unit -> unit = "print_exception_backtrace_stub" "noalloc"
14 (* ---------------------------------------------------------------------- *)
16 (* ---------------------------------------------------------------------- *)
22 then raise MyNot_Found
28 let test_backtrace () =
31 pr2
(Common.exn_to_s exn
);
35 print_string
"ok cool\n";
40 "-test_backtrace", " ",
41 Common.mk_action_0_arg
test_backtrace;