1Callback(3)                      OCaml library                     Callback(3)
2
3
4

NAME

6       Callback - Registering Caml values with the C runtime.
7

Module

9       Module   Callback
10

Documentation

12       Module Callback
13        : sig end
14
15
16       Registering Caml values with the C runtime.
17
18       This  module  allows  Caml  values  to be registered with the C runtime
19       under a symbolic name, so that C code can later  call  back  registered
20       Caml functions, or raise registered Caml exceptions.
21
22
23
24
25
26
27
28       val register : string -> 'a -> unit
29
30
31       Callback.register  n  v registers the value v under the name n . C code
32       can later retrieve a handle to v by calling caml_named_value(n) .
33
34
35
36
37       val register_exception : string -> exn -> unit
38
39
40       Callback.register_exception n exn registers the exception contained  in
41       the  exception value exn under the name n . C code can later retrieve a
42       handle to the exception by calling caml_named_value(n) . The  exception
43       value  thus  obtained  is  suitable  for  passign  as first argument to
44       raise_constant or raise_with_arg .
45
46
47
48
49
50
51OCamldoc                          2010-01-29                       Callback(3)
Impressum