1995-08-09 08:06:35 -07:00
|
|
|
(***********************************************************************)
|
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Objective Caml *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
1997-03-22 12:16:52 -08:00
|
|
|
(* Xavier Leroy and Jerome Vouillon, projet Cristal, INRIA Rocquencourt*)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* *)
|
1996-04-30 07:53:58 -07:00
|
|
|
(* Copyright 1996 Institut National de Recherche en Informatique et *)
|
1995-08-09 08:06:35 -07:00
|
|
|
(* Automatique. Distributed only by permission. *)
|
|
|
|
(* *)
|
|
|
|
(***********************************************************************)
|
|
|
|
|
|
|
|
(* $Id$ *)
|
|
|
|
|
1995-05-04 03:15:53 -07:00
|
|
|
(* To print values *)
|
|
|
|
|
1997-03-22 12:16:52 -08:00
|
|
|
module Printer = Genprintval.Make(Obj)
|
1995-05-04 03:15:53 -07:00
|
|
|
|
|
|
|
let max_printer_depth = ref 100
|
|
|
|
let max_printer_steps = ref 300
|
|
|
|
|
1997-03-22 12:16:52 -08:00
|
|
|
let print_exception = Printer.print_exception
|
1995-05-04 03:15:53 -07:00
|
|
|
let print_value env obj ty =
|
1997-03-22 12:16:52 -08:00
|
|
|
Printer.print_value !max_printer_steps !max_printer_depth
|
|
|
|
(fun _ _ _ -> true) env obj ty
|
1995-05-04 03:15:53 -07:00
|
|
|
|
1997-03-22 12:16:52 -08:00
|
|
|
let install_printer = Printer.install_printer
|
|
|
|
let remove_printer = Printer.remove_printer
|