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:
William S Fulton 2005-02-15 22:02:22 +00:00
commit 97ed6ef9f3
5 changed files with 124 additions and 55 deletions

View file

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