swig/Examples/test-suite/ocaml/allowexcept_runme.ml
Zackery Spytz 4074f788b3 [OCaml] Fix %allowexception
OCaml's variableWrapper() wasn't calling emit_action_code() for
in/out typemaps, which meant that %allowexception was being ignored.

In addition, remove all comments in the typemaps in Lib/ocaml. In the
case of the allowexcept test, one of the typemap comments caused
compilation to fail because it became nested within another comment
in an %exception block.

Re-enable the allowexcept test.
Add allowexcept_runme.ml.
2019-01-22 07:51:45 -07:00

7 lines
133 B
OCaml

open Swig
open Allowexcept
let _ =
assert (_global_variable '() = C_void);
assert (_Foo_static_member_variable '() = C_void)
;;