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:
parent
7f1a06e20d
commit
26283a6945
1 changed files with 8 additions and 0 deletions
|
|
@ -38,6 +38,10 @@ class string;
|
||||||
|
|
||||||
%typemap(typecheck) string = char *;
|
%typemap(typecheck) string = char *;
|
||||||
|
|
||||||
|
%typemap(throws) string %{
|
||||||
|
SWIG_CSharpThrowException(SWIG_CSharpException, $1.c_str());
|
||||||
|
%}
|
||||||
|
|
||||||
// const string &
|
// const string &
|
||||||
%typemap(ctype) const string & "char *"
|
%typemap(ctype) const string & "char *"
|
||||||
%typemap(imtype) const string & "string"
|
%typemap(imtype) const string & "string"
|
||||||
|
|
@ -56,5 +60,9 @@ class string;
|
||||||
|
|
||||||
%typemap(typecheck) const string & = char *;
|
%typemap(typecheck) const string & = char *;
|
||||||
|
|
||||||
|
%typemap(throws) const string & %{
|
||||||
|
SWIG_CSharpThrowException(SWIG_CSharpException, $1.c_str());
|
||||||
|
%}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue