Added special cases to the test-suite as required for D.
This is a part of the pending merge of the D module. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12298 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2070812f09
commit
a355d2d46a
29 changed files with 137 additions and 39 deletions
|
|
@ -1,4 +1,4 @@
|
|||
// Test using a target language specified base class, primarily for Java/C# and possibly other single inheritance languages
|
||||
// Test using a target language specified base class, primarily for Java/C#/D and possibly other single inheritance languages
|
||||
|
||||
// Note the multiple inheritance warnings don't appear because of the two techniques used in here: typemaps and %ignore
|
||||
|
||||
|
|
@ -6,6 +6,8 @@
|
|||
|
||||
#if defined(SWIGJAVA)
|
||||
# define csbase javabase
|
||||
#elif defined(SWIGD)
|
||||
# define csbase dbase
|
||||
#endif
|
||||
|
||||
%pragma(csharp) moduleimports=%{
|
||||
|
|
@ -20,6 +22,10 @@ class TargetLanguageBase { public void targetLanguageBaseMethod() {} };
|
|||
class TargetLanguageBase2 { public void targetLanguageBase2Method() {} };
|
||||
%}
|
||||
|
||||
%pragma(d) globalproxyimports=%{
|
||||
private class TargetLanguageBase { public void targetLanguageBaseMethod() {} };
|
||||
private class TargetLanguageBase2 { public void targetLanguageBase2Method() {} };
|
||||
%}
|
||||
|
||||
%typemap(csbase) SWIGTYPE "TargetLanguageBase"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue