Add OCaml throws typemaps for std::string
This commit is contained in:
parent
980e21a3bf
commit
e75095e6c5
1 changed files with 3 additions and 0 deletions
|
|
@ -96,6 +96,9 @@ class wstring;
|
||||||
}
|
}
|
||||||
|
|
||||||
%typemap(typecheck) string, const string & = char *;
|
%typemap(typecheck) string, const string & = char *;
|
||||||
|
|
||||||
|
%typemap(throws) string, const string & "SWIG_OCamlThrowException(SWIG_OCamlRuntimeException, $1.c_str());"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef ENABLE_CHARPTR_ARRAY
|
#ifdef ENABLE_CHARPTR_ARRAY
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue