aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2003-06-12 13:29:30 +0000
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2003-06-12 13:29:30 +0000
commitb81bebbb98a9e3579ab2e38f4dc434070b991e68 (patch)
treebf9f3bfe4db3bbdb8592879ad28339454e8f2211 /Examples/test-suite
parent41d404a446a0f5d78eaf1ba863768aaed2c731f1 (diff)
downloadswig-b81bebbb98a9e3579ab2e38f4dc434070b991e68.tar.gz
fix for testing under C#
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
Diffstat (limited to 'Examples/test-suite')
-rw-r--r--Examples/test-suite/typemap_namespace.i7
-rw-r--r--Examples/test-suite/typemap_subst.i4
2 files changed, 9 insertions, 2 deletions
diff --git a/Examples/test-suite/typemap_namespace.i b/Examples/test-suite/typemap_namespace.i
index 1c312bcfa..d5a9c0a07 100644
--- a/Examples/test-suite/typemap_namespace.i
+++ b/Examples/test-suite/typemap_namespace.i
@@ -12,6 +12,13 @@ namespace Foo {
struct Str1;
struct Str2;
+#ifdef SWIGCSHARP
+ %typemap(ctype) Str1 * = char *;
+ %typemap(imtype) Str1 * = char *;
+ %typemap(cstype) Str1 * = char *;
+ %typemap(csin) Str1 * = char *;
+ %typemap(csout) Str1 * = char *;
+#endif
#ifdef SWIGJAVA
%typemap(jni) Str1 * = char *;
%typemap(jtype) Str1 * = char *;
diff --git a/Examples/test-suite/typemap_subst.i b/Examples/test-suite/typemap_subst.i
index f9bc8dd6e..6288393d5 100644
--- a/Examples/test-suite/typemap_subst.i
+++ b/Examples/test-suite/typemap_subst.i
@@ -29,7 +29,6 @@
temp = &startemp;
amptemp = &temp;
}
- /* Java module doesn't seem to use SWIG's type system? */
{ /* Test descriptors */
void *desc = $descriptor;
void *stardesc = $*descriptor;
@@ -43,7 +42,8 @@
$1 = ($ltype) temp;
}
-#ifndef SWIGJAVA
+/* Java and C# modules don't use SWIG's runtime type system */
+#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
%inline %{
void foo(const struct xyzzy **TEST) {}
%}