Module Tools


module Tools: sig  end

Functions to run at exit


val at_exit_functions : (unit -> unit) list Pervasives.ref
val add_at_exit : (unit -> unit) -> unit
Parameters:
f : unit -> unit
val do_at_exit : unit -> unit
Parameters:
() : unit


Functions to run at reset


val at_reset_functions : (unit -> unit) list Pervasives.ref
val add_at_reset : (unit -> unit) -> unit
Parameters:
f : unit -> unit
val do_at_reset : unit -> unit
Parameters:
() : unit


Timing functions


val utime : ('a -> 'b) -> 'a -> 'b * float
Parameters:
f : 'a -> 'b
x : 'a
val timers : float list Pervasives.ref
val profile : string -> ('a -> 'b) -> 'a -> 'b
Parameters:
str : string
f : 'a -> 'b


Simulate dynamic binding


val dynamic_let : 'a Pervasives.ref * 'a -> ('b -> 'c) -> 'b -> 'c
Parameters:
(x,v) : 'a Pervasives.ref * 'a
f : 'b -> 'c
a : 'b


Global variable for linenumers


val linenumber : int Pervasives.ref

type mode =
| Atom
| Prop

val mode : mode Pervasives.ref