/tags/rel-1-3-26/SWIG/Examples/test-suite/ocaml/imports_runme.ml
# · OCaml · 10 lines · 6 code · 1 blank · 3 comment · 0 complexity · 4a7a51b12b85ce2da997409ee39f819f MD5 · raw file
- (* purpose: to receive the hello A method from Imports_a exposed through
- * a B object derived from A *)
- open Swig
- open Imports_a
- open Imports_b
- let x = new_B C_void
- (* Tests conversion of x to a generic value *)
- let a = swig_val `unknown x
- let _ = (invoke x) "hello" C_void