From bd4f186ae1d6c54562ea92eedec23143c6ef3632 Mon Sep 17 00:00:00 2001 From: Art Yerkes Date: Sat, 25 Oct 2003 03:24:31 +0000 Subject: [PATCH] preamble for swig modules now that a separate Swig module exists. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5202 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- Lib/ocaml/preamble.swg | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Lib/ocaml/preamble.swg diff --git a/Lib/ocaml/preamble.swg b/Lib/ocaml/preamble.swg new file mode 100644 index 000000000..508371c51 --- /dev/null +++ b/Lib/ocaml/preamble.swg @@ -0,0 +1,21 @@ +%insert(mli) %{ +type c_obj = c_enum_tag c_obj_t + +exception BadArgs of string +exception BadMethodName of c_obj * string * string +exception NotObject of c_obj +exception NotEnumType of c_obj +exception LabelNotFromThisEnum of c_obj + +val invoke : c_obj -> (string -> c_obj -> c_obj) +%} + +%insert(ml) %{ +type c_obj = c_enum_tag c_obj_t + +exception BadArgs of string +exception BadMethodName of c_obj * string * string +exception NotObject of c_obj +exception NotEnumType of c_obj +exception LabelNotFromThisEnum of c_obj +%} \ No newline at end of file