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:
parent
e8c6bfbc8f
commit
7bb7fe135a
3 changed files with 12 additions and 7 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue