C++ namespace testing for interface feature

This commit is contained in:
William S Fulton 2016-02-26 18:11:44 +00:00
commit 64bd1c5d39

View file

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