Add support for unnamed parameters: member const function pointers
This commit is contained in:
parent
5aff26fcb5
commit
fc638814ae
2 changed files with 25 additions and 0 deletions
|
|
@ -5670,6 +5670,24 @@ direct_abstract_declarator : direct_abstract_declarator LBRACKET RBRACKET {
|
|||
$$.have_parms = 1;
|
||||
}
|
||||
}
|
||||
| direct_abstract_declarator LPAREN parms RPAREN type_qualifier {
|
||||
SwigType *t;
|
||||
$$ = $1;
|
||||
t = NewStringEmpty();
|
||||
SwigType_add_function(t,$3);
|
||||
SwigType_push(t, $5);
|
||||
if (!$$.type) {
|
||||
$$.type = t;
|
||||
} else {
|
||||
SwigType_push(t,$$.type);
|
||||
Delete($$.type);
|
||||
$$.type = t;
|
||||
}
|
||||
if (!$$.have_parms) {
|
||||
$$.parms = $3;
|
||||
$$.have_parms = 1;
|
||||
}
|
||||
}
|
||||
| LPAREN parms RPAREN {
|
||||
$$.type = NewStringEmpty();
|
||||
SwigType_add_function($$.type,$2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue