PageRenderTime 21ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/rel-1-3-29/SWIG/Examples/test-suite/ocaml/using_protected_runme.ml

#
OCaml | 8 lines | 6 code | 2 blank | 0 comment | 1 complexity | 2e7494beb03f69268a657481d844fbd9 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
1open Swig
2open Using_protected
3
4let f = new_FooBar C_void
5let _ = (invoke f) "x" (C_int 3)
6
7let _ = if (invoke f) "blah" (C_int 4) <> (C_int 4) then
8    raise (Failure "blah(int)")