From 8ed158412648c378ee483a04c805cd21e1bdd1d6 Mon Sep 17 00:00:00 2001 From: triton Date: Sat, 20 Jul 2013 03:06:43 +0100 Subject: [PATCH] When checking for ignored declarations, return early if the declaration is already ignored. --- src/Generator/Passes/CheckIgnoredDecls.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Generator/Passes/CheckIgnoredDecls.cs b/src/Generator/Passes/CheckIgnoredDecls.cs index e77566f0..11598ab6 100644 --- a/src/Generator/Passes/CheckIgnoredDecls.cs +++ b/src/Generator/Passes/CheckIgnoredDecls.cs @@ -11,6 +11,9 @@ namespace CppSharp.Passes public override bool VisitDeclaration(Declaration decl) { + if (decl.ExplicityIgnored) + return false; + if (decl.IsDependent) { decl.ExplicityIgnored = true;