Fixed function argument bug
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
812f140923
commit
34a220f341
1 changed files with 10 additions and 0 deletions
|
|
@ -73,6 +73,16 @@ class TypePass : public Dispatcher {
|
|||
while (p) {
|
||||
SwigType *ty = Getattr(p,"type");
|
||||
normalize_type(ty);
|
||||
|
||||
/* This is a check for a function type */
|
||||
{
|
||||
SwigType *qty = SwigType_typedef_resolve_all(ty);
|
||||
if (SwigType_isfunction(qty)) {
|
||||
SwigType_add_pointer(ty);
|
||||
}
|
||||
Delete(qty);
|
||||
}
|
||||
|
||||
String *value = Getattr(p,"value");
|
||||
if (value) {
|
||||
Node *n = Swig_symbol_clookup(value,0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue