Files
cpp-thirdparty/winx64/bin/swig-3.0.12/Examples/test-suite/ocaml/using_protected_runme.ml
Bassem Girgis 81b4b9e273 Initial commit
2018-12-20 17:34:07 -06:00

9 lines
181 B
OCaml

open Swig
open Using_protected
let f = new_FooBar C_void
let _ = (invoke f) "x" (C_int 3)
let _ = if (invoke f) "blah" (C_int 4) <> (C_int 4) then
raise (Failure "blah(int)")