Remove unused SWIG_NO_OVERLOAD macro from testcases

This commit is contained in:
William S Fulton 2017-10-04 23:49:40 +01:00
parent f4644d7c30
commit 4f4147a779
5 changed files with 0 additions and 20 deletions

View File

@ -19,8 +19,6 @@
#endif
#ifndef SWIG_NO_OVERLOAD
%immutable Spam::type;
%inline %{
@ -130,8 +128,6 @@ static char *bar(void *[SIZE]) {
%}
#endif
%inline {
class ClassA

View File

@ -1,8 +1,6 @@
// A complicated test of overloaded functions
%module overload_complicated
#ifndef SWIG_NO_OVERLOAD
// Different overloaded warning filters needed for scripting languages (eg Python) and for statically typed languages (eg C#).
%warnfilter(509, 516) Pop::Pop;
%warnfilter(509, 516) Pop::hip;
@ -69,6 +67,3 @@ int muzak(int& i) { return 3003; }
int muzak(const int* i) { return 3004; }
%}
#endif

View File

@ -1,7 +1,6 @@
// Tests copy constructor
%module overload_copy
#ifndef SWIG_NO_OVERLOAD
%inline %{
class Foo {
@ -11,6 +10,3 @@ public:
};
%}
#endif

View File

@ -19,7 +19,6 @@
%rename(Foos) Foo;
#endif
#ifndef SWIG_NO_OVERLOAD
%immutable Spam::type;
%inline %{
@ -177,8 +176,6 @@ long long ll(long long ull) { return ull; }
%malloc(void);
%free(void);
#endif
%inline {
class ClassA

View File

@ -4,8 +4,6 @@
%warnfilter(SWIGWARN_LANG_OVERLOAD_SHADOW) test;
#endif
#ifndef SWIG_NO_OVERLOAD
%inline %{
struct Foo {
int x;
@ -24,5 +22,3 @@ public:
};
%}
#endif