Fixed function argument bug
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@4563 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
7fd340e93e
commit
481ec5deef
1 changed files with 10 additions and 0 deletions
|
|
@ -73,6 +73,16 @@ class TypePass : public Dispatcher {
|
||||||
while (p) {
|
while (p) {
|
||||||
SwigType *ty = Getattr(p,"type");
|
SwigType *ty = Getattr(p,"type");
|
||||||
normalize_type(ty);
|
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");
|
String *value = Getattr(p,"value");
|
||||||
if (value) {
|
if (value) {
|
||||||
Node *n = Swig_symbol_clookup(value,0);
|
Node *n = Swig_symbol_clookup(value,0);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue