[OCaml] Add missing INPUT, OUTPUT, and INOUT typemaps for primitives

The typemaps are based on PHP's.
This commit is contained in:
Zackery Spytz 2019-02-18 04:23:40 -07:00
commit 470ce2dd31
7 changed files with 64 additions and 15 deletions

View 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.);
;;