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

11 lines
276 B
OCaml

(* 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