diff --git a/src/Generator/Passes/Pass.cs b/src/Generator/Passes/Pass.cs index a5ae77f1..4d8007dc 100644 --- a/src/Generator/Passes/Pass.cs +++ b/src/Generator/Passes/Pass.cs @@ -30,7 +30,7 @@ namespace CppSharp.Passes public virtual bool VisitTranslationUnit(TranslationUnit unit) { - if (unit.Ignore) + if (!unit.IsProcessed) return false; if (unit.IsSystemHeader) diff --git a/src/Generator/Types/Types.cs b/src/Generator/Types/Types.cs index 0925814b..24a0733d 100644 --- a/src/Generator/Types/Types.cs +++ b/src/Generator/Types/Types.cs @@ -54,7 +54,7 @@ namespace CppSharp if (decl.CompleteDeclaration != null) return VisitDeclaration(decl.CompleteDeclaration); - if (decl.Ignore) + if (!decl.IsProcessed || decl.ExplicityIgnored) { Ignore(); return false;