Only test nspacemove for languages that support nspace

This commit is contained in:
William S Fulton 2024-06-01 23:10:03 +01:00
parent a3682dd3e5
commit 5d35b97459
2 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,8 @@
// Tests nested classes for badly configured %nspace, %nonspace, %nspacemove combinations
// Based off Examples/test-suite/errors/swig_nspacemove.i
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGD) || defined(SWIGLUA) || defined(SWIGJAVASCRIPT)
#if !defined(SWIGCSHARP) && !defined(SWIGJAVA)
%feature ("flatnested");
#endif
@ -199,3 +201,5 @@ namespace Space {
};
}
%}
#endif

View File

@ -1,5 +1,7 @@
%module nspacemove_stl
#if defined(SWIGJAVA) || defined(SWIGCSHARP) || defined(SWIGD) || defined(SWIGLUA) || defined(SWIGJAVASCRIPT)
#if defined(SWIGJAVA)
SWIG_JAVABODY_PROXY(public, public, SWIGTYPE)
#endif
@ -25,3 +27,5 @@ void test_vector_string(std::vector<std::string> a) {}
void test_map_int(std::map<int, int> a) {}
void test_map_string(std::map<int, std::string> a) {}
%}
#endif