Latest exception fixes for properties
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ea7207963c
commit
97ed6ef9f3
5 changed files with 124 additions and 55 deletions
|
|
@ -40,13 +40,14 @@ class string;
|
|||
return ret;
|
||||
}
|
||||
|
||||
%typemap(csvarin) string %{
|
||||
%typemap(csvarin, excode=SWIGEXCODE2) string %{
|
||||
set {
|
||||
$imcall;
|
||||
$imcall;$excode
|
||||
} %}
|
||||
%typemap(csvarout) string %{
|
||||
%typemap(csvarout, excode=SWIGEXCODE2) string %{
|
||||
get {
|
||||
return $imcall;
|
||||
string ret = $imcall;$excode
|
||||
return ret;
|
||||
} %}
|
||||
|
||||
%typemap(typecheck) string = char *;
|
||||
|
|
@ -76,13 +77,14 @@ class string;
|
|||
return ret;
|
||||
}
|
||||
|
||||
%typemap(csvarin) const string & %{
|
||||
%typemap(csvarin, excode=SWIGEXCODE2) const string & %{
|
||||
set {
|
||||
$imcall;
|
||||
$imcall;$excode
|
||||
} %}
|
||||
%typemap(csvarout) const string & %{
|
||||
%typemap(csvarout, excode=SWIGEXCODE2) const string & %{
|
||||
get {
|
||||
return $imcall;
|
||||
string ret = $imcall;$excode
|
||||
return ret;
|
||||
} %}
|
||||
|
||||
%typemap(typecheck) const string & = char *;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue