[OCaml] Add missing INPUT, OUTPUT, and INOUT typemaps for primitives
The typemaps are based on PHP's.
This commit is contained in:
parent
b9350614b5
commit
470ce2dd31
7 changed files with 64 additions and 15 deletions
8
Examples/test-suite/ocaml/inout_runme.ml
Normal file
8
Examples/test-suite/ocaml/inout_runme.ml
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
open Swig
|
||||
open Inout
|
||||
|
||||
let _ =
|
||||
assert (_AddOne1 '(1.) as float = 2.);
|
||||
assert (_AddOne3 '(1, 1, 1) = C_list ['2.;'2.;'2.]);
|
||||
assert (_AddOne1r '(1.) as float = 2.);
|
||||
;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue