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
This commit is contained in:
parent
a181d5cf18
commit
bd4f186ae1
1 changed files with 21 additions and 0 deletions
21
Lib/ocaml/preamble.swg
Normal file
21
Lib/ocaml/preamble.swg
Normal file
|
|
@ -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
|
||||
%}
|
||||
Loading…
Add table
Add a link
Reference in a new issue