throws typemaps added

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6159 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-08-26 21:57:36 +00:00
commit 26283a6945

View file

@ -38,6 +38,10 @@ class string;
%typemap(typecheck) string = char *;
%typemap(throws) string %{
SWIG_CSharpThrowException(SWIG_CSharpException, $1.c_str());
%}
// const string &
%typemap(ctype) const string & "char *"
%typemap(imtype) const string & "string"
@ -56,5 +60,9 @@ class string;
%typemap(typecheck) const string & = char *;
%typemap(throws) const string & %{
SWIG_CSharpThrowException(SWIG_CSharpException, $1.c_str());
%}
}