diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2005-02-15 22:02:22 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2005-02-15 22:02:22 +0000 |
commit | 97ed6ef9f36611f78e264c4df982e318eb70c231 (patch) | |
tree | cb5191cfa73897d9b88ee67379b72c3ebe078063 /Lib/csharp/std_string.i | |
parent | ea7207963c8477c0d2b128ee877f4fa37730a207 (diff) | |
download | swig-97ed6ef9f36611f78e264c4df982e318eb70c231.tar.gz |
Latest exception fixes for properties
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6950 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Lib/csharp/std_string.i')
-rw-r--r-- | Lib/csharp/std_string.i | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/Lib/csharp/std_string.i b/Lib/csharp/std_string.i index 6c650aa83..0f8b9a6a5 100644 --- a/Lib/csharp/std_string.i +++ b/Lib/csharp/std_string.i @@ -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 *; |