The great merge
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4141 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
6fcc22a1f8
commit
516036631c
1508 changed files with 125983 additions and 44037 deletions
59
SWIG/Examples/test-suite/namespace_nested.i
Normal file
59
SWIG/Examples/test-suite/namespace_nested.i
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
%module namespace_nested
|
||||
|
||||
%warnfilter(801) hello::hi::hi0; /* Ruby, wrong class name */
|
||||
%warnfilter(801) oss::hi1<hello::Hi0 >; /* Ruby, wrong class name */
|
||||
|
||||
%inline %{
|
||||
namespace hello
|
||||
{
|
||||
namespace hi
|
||||
{
|
||||
struct hi0
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
template <class _T1>
|
||||
struct Hi : _T1
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
namespace hello
|
||||
{
|
||||
%template(Hi_hi0) Hi<hi::hi0>;
|
||||
}
|
||||
|
||||
|
||||
%inline %{
|
||||
|
||||
namespace hello
|
||||
{
|
||||
//
|
||||
// This works
|
||||
//
|
||||
// typedef Hi<hello::hi::hi0> Hi0;
|
||||
|
||||
//
|
||||
// This doesn't work
|
||||
//
|
||||
typedef Hi<hi::hi0> Hi0;
|
||||
};
|
||||
|
||||
|
||||
namespace oss
|
||||
{
|
||||
template <class _T>
|
||||
struct hi1 : _T
|
||||
{
|
||||
};
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
namespace oss
|
||||
{
|
||||
%template(hi1_hi0) hi1<hello::Hi0 >;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue