Browse Source

When checking for ignored declarations: check the complete version of the declaration if there is one, use the type map if one is found, or ignore the declaration if it is not generated.

pull/1/head
triton 13 years ago
parent
commit
96674f2cc4
  1. 15
      src/Generator/Types/Types.cs

15
src/Generator/Types/Types.cs

@ -72,18 +72,19 @@ namespace CppSharp @@ -72,18 +72,19 @@ namespace CppSharp
public override bool VisitDeclaration(Declaration decl)
{
if (decl.Ignore)
Ignore();
if (decl.CompleteDeclaration != null)
return VisitDeclaration(decl.CompleteDeclaration);
return true;
}
TypeMap typeMap;
if (TypeMapDatabase.FindTypeMap(decl, out typeMap))
return typeMap.IsIgnored;
public override bool VisitClassDecl(Class @class)
if (!decl.IsGenerated)
{
if (AlreadyVisited(@class))
Ignore();
return false;
}
VisitDeclaration(@class);
return true;
}

Loading…
Cancel
Save