[OCaml] Add a typecheck typemap for SWIGTYPE

This fixes many of the remaining warnings in the OCaml test suite.

Add multiple runtime tests.
This commit is contained in:
Zackery Spytz 2019-02-16 01:07:31 -07:00
commit b7a400f991
8 changed files with 211 additions and 10 deletions

View file

@ -86,6 +86,7 @@ class wstring;
%typemap(out) string * {
$result = caml_val_string_len((*$1).c_str(),(*$1).size());
}
%typemap(typecheck) string, const string & = char *;
}
#ifdef ENABLE_CHARPTR_ARRAY