[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:
parent
6522afe90a
commit
b7a400f991
8 changed files with 211 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue