summaryrefslogtreecommitdiff
path: root/Lib/csharp/std_string.i
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2005-02-15 22:02:22 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2005-02-15 22:02:22 +0000
commit97ed6ef9f36611f78e264c4df982e318eb70c231 (patch)
treecb5191cfa73897d9b88ee67379b72c3ebe078063 /Lib/csharp/std_string.i
parentea7207963c8477c0d2b128ee877f4fa37730a207 (diff)
downloadswig-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.i18
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 *;