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:
parent
1ad7cc4bdc
commit
d17a07cbfe
2 changed files with 9 additions and 2 deletions
|
|
@ -12,6 +12,13 @@ namespace Foo {
|
||||||
struct Str1;
|
struct Str1;
|
||||||
struct Str2;
|
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
|
#ifdef SWIGJAVA
|
||||||
%typemap(jni) Str1 * = char *;
|
%typemap(jni) Str1 * = char *;
|
||||||
%typemap(jtype) Str1 * = char *;
|
%typemap(jtype) Str1 * = char *;
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,6 @@
|
||||||
temp = &startemp;
|
temp = &startemp;
|
||||||
amptemp = &temp;
|
amptemp = &temp;
|
||||||
}
|
}
|
||||||
/* Java module doesn't seem to use SWIG's type system? */
|
|
||||||
{ /* Test descriptors */
|
{ /* Test descriptors */
|
||||||
void *desc = $descriptor;
|
void *desc = $descriptor;
|
||||||
void *stardesc = $*descriptor;
|
void *stardesc = $*descriptor;
|
||||||
|
|
@ -43,7 +42,8 @@
|
||||||
$1 = ($ltype) temp;
|
$1 = ($ltype) temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef SWIGJAVA
|
/* Java and C# modules don't use SWIG's runtime type system */
|
||||||
|
#if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
|
||||||
%inline %{
|
%inline %{
|
||||||
void foo(const struct xyzzy **TEST) {}
|
void foo(const struct xyzzy **TEST) {}
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue