]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/ocaml/ocaml/contrib/ocamlbuild/hooks.ml
Update
[l4.git] / l4 / pkg / ocaml / ocaml / contrib / ocamlbuild / hooks.ml
1 (***********************************************************************)
2 (*                             ocamlbuild                              *)
3 (*                                                                     *)
4 (*  Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)
5 (*                                                                     *)
6 (*  Copyright 2007 Institut National de Recherche en Informatique et   *)
7 (*  en Automatique.  All rights reserved.  This file is distributed    *)
8 (*  under the terms of the Q Public License version 1.0.               *)
9 (*                                                                     *)
10 (***********************************************************************)
11
12
13 (* Original author: Nicolas Pouillard *)
14 type message =
15   | Before_hygiene
16   | After_hygiene
17   | Before_options
18   | After_options
19   | Before_rules
20   | After_rules
21
22 let hooks = ref ignore
23
24 let setup_hooks f = hooks := f
25
26 let call_hook m = !hooks m