[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:
parent
7118e4ef1e
commit
4074f788b3
8 changed files with 20 additions and 50 deletions
|
|
@ -14,7 +14,6 @@ top_srcdir = @top_srcdir@
|
|||
top_builddir = @top_builddir@
|
||||
|
||||
FAILING_CPP_TESTS = \
|
||||
allowexcept \
|
||||
allprotected \
|
||||
apply_signed_char \
|
||||
apply_strings \
|
||||
|
|
|
|||
7
Examples/test-suite/ocaml/allowexcept_runme.ml
Normal file
7
Examples/test-suite/ocaml/allowexcept_runme.ml
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
open Swig
|
||||
open Allowexcept
|
||||
|
||||
let _ =
|
||||
assert (_global_variable '() = C_void);
|
||||
assert (_Foo_static_member_variable '() = C_void)
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue