From 66c3acc2f6a0257cfba1bf3ba95a3ee5e174b876 Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Wed, 21 Dec 2016 23:18:55 +0200 Subject: [PATCH] Fixed a bug when determining if a type is external to the current module. Signed-off-by: Dimitar Dobrev --- src/Generator/Passes/CheckIgnoredDecls.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Generator/Passes/CheckIgnoredDecls.cs b/src/Generator/Passes/CheckIgnoredDecls.cs index 0ad6dcc7..8fded460 100644 --- a/src/Generator/Passes/CheckIgnoredDecls.cs +++ b/src/Generator/Passes/CheckIgnoredDecls.cs @@ -409,10 +409,9 @@ namespace CppSharp.Passes if (declaration.TranslationUnit.Module.Libraries.Any(l => Context.Symbols.Libraries.First( lib => lib.FileName == l).Dependencies.Any( - module.Libraries.Contains))) - { + d => module != declaration.TranslationUnit.Module && + module.Libraries.Contains(d)))) return true; - } } return false; }