C++ namespace testing for interface feature
This commit is contained in:
parent
3b8f00f774
commit
64bd1c5d39
1 changed files with 5 additions and 3 deletions
|
|
@ -3,12 +3,13 @@
|
||||||
|
|
||||||
#if defined(SWIGJAVA) || defined(SWIGCSHARP)
|
#if defined(SWIGJAVA) || defined(SWIGCSHARP)
|
||||||
%include "feature_interface.i"
|
%include "feature_interface.i"
|
||||||
DECLARE_INTERFACE_RENAME(ABase1, SWIGTYPE_ABase1, ABase1)
|
DECLARE_INTERFACE_RENAME(ABase1, SWIGTYPE_ABase1, Space::ABase1)
|
||||||
DECLARE_INTERFACE_RENAME(CBase1, SWIGTYPE_CBase1, CBase1)
|
DECLARE_INTERFACE_RENAME(CBase1, SWIGTYPE_CBase1, Space::CBase1)
|
||||||
DECLARE_INTERFACE_RENAME(CBase2, SWIGTYPE_CBase2, CBase2)
|
DECLARE_INTERFACE_RENAME(CBase2, SWIGTYPE_CBase2, Space::CBase2)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
%inline %{
|
%inline %{
|
||||||
|
namespace Space {
|
||||||
struct CBase1 {
|
struct CBase1 {
|
||||||
virtual void cbase1x() {
|
virtual void cbase1x() {
|
||||||
return;
|
return;
|
||||||
|
|
@ -312,5 +313,6 @@ DECLARE_INTERFACE_RENAME(CBase2, SWIGTYPE_CBase2, CBase2)
|
||||||
CBase2 MakeValDerived3_CBase2() {
|
CBase2 MakeValDerived3_CBase2() {
|
||||||
return Derived3();
|
return Derived3();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue