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
|
|
@ -439,13 +439,8 @@ SwigType *SwigType_default_deduce(const SwigType *t) {
|
|||
Setitem(l, numitems-2, deduced_subtype);
|
||||
}
|
||||
} else if (SwigType_ismemberpointer(subtype)) {
|
||||
if (numitems >= 3) {
|
||||
/* member pointer deduction, eg, r.p.m(CLASS) => r.m(CLASS) */
|
||||
Delitem(l, numitems-3);
|
||||
} else {
|
||||
/* member pointer deduction, m(CLASS). => p. */
|
||||
Setitem(l, numitems-2, NewString("p."));
|
||||
}
|
||||
/* member pointer deduction, m(CLASS). => p. */
|
||||
Setitem(l, numitems-2, NewString("p."));
|
||||
} else if (is_enum && !SwigType_isqualifier(subtype)) {
|
||||
/* enum deduction, enum SWIGTYPE => SWIGTYPE */
|
||||
Setitem(l, numitems-1, NewString("SWIGTYPE"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue