typemap fix for c# and visual c++
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@7638 626c5289-ae23-0410-ae9c-e8d60b6d4f22
diff --git a/SWIG/Examples/test-suite/template_default.i b/SWIG/Examples/test-suite/template_default.i
index 54df21b..8dadb6c 100644
--- a/SWIG/Examples/test-suite/template_default.i
+++ b/SWIG/Examples/test-suite/template_default.i
@@ -53,7 +53,11 @@
#ifdef SWIG
%typemap(in) A * { /* in A */ }
+ #ifdef SWIGCSHARP
+ %typemap(out) A * { /* out A */ $result=0; }
+ #else
%typemap(out) A * { /* out A */ }
+ #endif
#endif
};
@@ -69,7 +73,11 @@
#ifdef SWIG
%typemap(in) N * { /* in N */ }
+ #ifdef SWIGCSHARP
+ %typemap(out) N * { /* out N */ $result=0; }
+ #else
%typemap(out) N * { /* out N */ }
+ #endif
#endif
};
}