From c0c675b4c091fb171c782a7f21304156901d3597 Mon Sep 17 00:00:00 2001 From: triton Date: Wed, 29 May 2013 19:30:52 +0100 Subject: [PATCH] Check for not processed or explicitly ignored functions instead of just ignored, since ignored also checks for IsGenerated which is incorrect in this instance (eg. we dont want to generate wrapper methods for getters, but we still need their internal declaration for properties). --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 3e4383e5..5a8f2924 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -1719,7 +1719,8 @@ namespace CppSharp.Generators.CSharp public void GenerateInternalFunction(Function function) { - if(function.Ignore) return; + if (!function.IsProcessed || function.ExplicityIgnored) + return; GenerateDeclarationCommon(function); WriteLine("[SuppressUnmanagedCodeSecurity]");