module Utils:sig..end
val printd : int -> ('a, unit, string, unit) Stdlib.format4 -> 'aFor instance printd debug_warning "The value x=%u is too big" x will
print a message in the console only if the Utils.debug variable contains the
debug_warning flag.
val debug : bool Stdlib.ref
val debug_code : int Stdlib.refLogical ored of !debug with debug flags (below) controls the amount
of debuging.
val debug_thread : int
val debug_warning : int
val debug_graphics : int
val debug_error : int
val debug_io : int
val debug_memory : int
val debug_board : int
val debug_event : int
val debug_custom : intval pi : float
val round : float -> intRound float to nearest integer.
val imax : int -> int -> intimax a b returns max(a, b). (Same as Int.max).
val imin : int -> int -> intimin a b returns min(a, b). (Same as Int.min).
val go : 'a Tsdl.Sdl.result -> 'aTransform a result into a standard value, or fail with an error. Used
for SDL functions only.
Monadic style operations on optional variables.
val map_option : 'a option -> ('a -> 'b) -> 'b optionmap_option o f is the same as Option.map f o.
val do_option : 'a option -> ('a -> unit) -> unitdo_option o f is the same as Option.iter f o.
val default : 'a option -> 'a -> 'adefault o v is the same as Option.value o ~default:v. Warning: v is
evaluated even if it is not used.
exception None_option
val remove_option : 'a option -> 'aLike Option.get. Warning: remove_option None will raise the
Utils.None_option exception.
val let@ : ('a -> 'b) -> 'a -> 'b
val run : (unit -> 'a) -> 'arun f is equivalent to f ().