From 1ceabd676c494e98346d7c785eaee2d092b3bd20 Mon Sep 17 00:00:00 2001 From: triton Date: Tue, 18 Feb 2014 14:09:08 +0000 Subject: [PATCH] Fixed declaration checking to have into account processing/generation ignore flags. --- src/Generator/Passes/Pass.cs | 2 +- src/Generator/Types/Types.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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;