[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.
This commit is contained in:
Zackery Spytz 2019-01-22 07:51:45 -07:00
commit 4074f788b3
8 changed files with 20 additions and 50 deletions

View file

@ -14,7 +14,6 @@ top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
FAILING_CPP_TESTS = \
allowexcept \
allprotected \
apply_signed_char \
apply_strings \

View file

@ -0,0 +1,7 @@
open Swig
open Allowexcept
let _ =
assert (_global_variable '() = C_void);
assert (_Foo_static_member_variable '() = C_void)
;;