aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite
diff options
context:
space:
mode:
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) {}
%}