Browse Source

When checking for ignored declarations, return early if the declaration is already ignored.

pull/13/merge
triton 12 years ago
parent
commit
8ed1584126
  1. 3
      src/Generator/Passes/CheckIgnoredDecls.cs

3
src/Generator/Passes/CheckIgnoredDecls.cs

@ -11,6 +11,9 @@ namespace CppSharp.Passes
public override bool VisitDeclaration(Declaration decl) public override bool VisitDeclaration(Declaration decl)
{ {
if (decl.ExplicityIgnored)
return false;
if (decl.IsDependent) if (decl.IsDependent)
{ {
decl.ExplicityIgnored = true; decl.ExplicityIgnored = true;

Loading…
Cancel
Save