From 966c128bc96118fb12c753c01bf5f134c888e61a Mon Sep 17 00:00:00 2001 From: Maxence Guesdon Date: Mon, 3 Dec 2001 22:01:28 +0000 Subject: =?UTF-8?q?commentaires=20apr=C3=A8s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@4082 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02 --- stdlib/callback.mli | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdlib/callback.mli') diff --git a/stdlib/callback.mli b/stdlib/callback.mli index ae540dfbda..be2e6a0882 100644 --- a/stdlib/callback.mli +++ b/stdlib/callback.mli @@ -19,15 +19,15 @@ Caml functions, or raise registered Caml exceptions. *) +val register : string -> 'a -> unit (** [Callback.register n v] registers the value [v] under the name [n]. C code can later retrieve a handle to [v] by calling [caml_named_value(n)]. *) -val register: string -> 'a -> unit +val register_exception : string -> exn -> unit (** [Callback.register_exception n exn] registers the exception contained in the exception value [exn] under the name [n]. C code can later retrieve a handle to the exception by calling [caml_named_value(n)]. The exception value thus obtained is suitable for passign as first argument to [raise_constant] or [raise_with_arg]. *) -val register_exception: string -> exn -> unit -- cgit v1.2.1