PageRenderTime 8ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 1ms

/trunk/Examples/test-suite/ocaml/using_protected_runme.ml

#
OCaml | 8 lines | 6 code | 2 blank | 0 comment | 1 complexity | 2e7494beb03f69268a657481d844fbd9 MD5 | raw file
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)")