Add OCaml throws typemaps for std::string

This commit is contained in:
William S Fulton 2022-07-03 13:35:08 +01:00
commit e75095e6c5

View file

@ -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