Merge branch 'ZackerySpytz-OCaml-class-example'

* ZackerySpytz-OCaml-class-example:
  [OCaml] Re-enable the using_protected unit test
  [OCaml] Add a class example
This commit is contained in:
William S Fulton 2019-01-14 23:16:59 +00:00
commit 36846e9342
9 changed files with 166 additions and 7 deletions

View file

@ -40,7 +40,6 @@ nested_directors \
preproc_constants \
smart_pointer_inherit \
typedef_mptr \
using_protected \
FAILING_C_TESTS = \
enums \

View file

@ -2,7 +2,7 @@ open Swig
open Using_protected
let f = new_FooBar C_void
let _ = (invoke f) "x" (C_int 3)
let _ = (invoke f) "[x]" (C_int 3)
let _ = if (invoke f) "blah" (C_int 4) <> (C_int 4) then
raise (Failure "blah(int)")