Let cpp_basic unit test pass without method pointers support

This was the only part of the test that didn't work, test at least the rest of
it.
This commit is contained in:
Vadim Zeitlin 2016-04-20 18:41:21 +02:00
commit 7bb7fe135a
3 changed files with 12 additions and 7 deletions

View file

@ -29,7 +29,9 @@ class Foo {
return -a*num;
}
#ifndef SWIGC
int (Foo::*func_ptr)(int);
#endif // SWIGC
const char* __str__() const { return "Foo"; }
};
@ -87,6 +89,7 @@ Foo Bar::global_fval = Foo(3);
%}
/* member function tests */
#ifndef SWIGC
%inline %{
int (Foo::*get_func1_ptr())(int) {
return &Foo::func1;
@ -101,6 +104,7 @@ int test_func_ptr(Foo *f, int a) {
}
%}
#endif // SWIGC
#ifdef __cplusplus