Fix wrapping of references/pointers and qualifiers to member pointers
Also fix Go wrapping of member const function pointers.
This commit is contained in:
parent
cf7d53599c
commit
72ba741d1c
21 changed files with 70 additions and 42 deletions
|
|
@ -48,24 +48,18 @@ public:
|
|||
typedef double (Shape::*PerimeterFunc_td)(void);
|
||||
|
||||
extern double do_op(Shape *s, double (Shape::*m)(void));
|
||||
#if !defined(SWIGGO)
|
||||
extern double do_op_td(Shape *s, PerimeterFunc_td m);
|
||||
#endif
|
||||
|
||||
/* Functions that return member pointers */
|
||||
|
||||
extern double (Shape::*areapt())(void);
|
||||
extern double (Shape::*perimeterpt())(void);
|
||||
#if !defined(SWIGGO)
|
||||
extern PerimeterFunc_td perimeterpt_td();
|
||||
#endif
|
||||
|
||||
/* Global variables that are member pointers */
|
||||
extern double (Shape::*areavar)(void);
|
||||
extern double (Shape::*perimetervar)(void);
|
||||
#if !defined(SWIGGO)
|
||||
extern PerimeterFunc_td perimetervar_td;
|
||||
#endif
|
||||
%}
|
||||
|
||||
%{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue