add CCFormat.flush

This commit is contained in:
Simon Cruanes 2017-03-07 09:24:03 +01:00
parent d45b341232
commit 719d048f57
2 changed files with 5 additions and 0 deletions

View file

@ -37,6 +37,7 @@ let int32 fmt n = Format.fprintf fmt "%ld" n
let int64 fmt n = Format.fprintf fmt "%Ld" n
let nativeint fmt n = Format.fprintf fmt "%nd" n
let string_quoted fmt s = Format.fprintf fmt "\"%s\"" s
let flush = Format.pp_print_flush
let list ?(sep=return ",@ ") pp fmt l =
let rec pp_list l = match l with

View file

@ -28,6 +28,10 @@ val int32 : int32 printer (** @since 0.14 *)
val int64 : int64 printer (** @since 0.14 *)
val nativeint : nativeint printer (** @since 0.14 *)
val flush : unit printer
(** Alias to {!Format.pp_print_flush}.
@since NEXT_RELEASE *)
val string_quoted : string printer
(** Similar to {!CCString.print}.
@since 0.14 *)