fix for testing under C#

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4900 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-06-12 13:29:30 +00:00
commit d17a07cbfe
2 changed files with 9 additions and 2 deletions

View file

@ -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 *;

View file

@ -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) {}
%}