diff --git a/src/Generator/Generators/CSharp/CSharpSources.cs b/src/Generator/Generators/CSharp/CSharpSources.cs index dd04ea0e..07638140 100644 --- a/src/Generator/Generators/CSharp/CSharpSources.cs +++ b/src/Generator/Generators/CSharp/CSharpSources.cs @@ -259,7 +259,8 @@ namespace CppSharp.Generators.CSharp // Generate all the internal function declarations. foreach (var function in context.Functions) { - if ((!function.IsGenerated && !function.IsInternal) || function.IsSynthetized) continue; + if ((!function.IsGenerated && !function.IsInternal) || function.IsSynthetized) + continue; GenerateInternalFunction(function); } diff --git a/src/Generator/Passes/FindSymbolsPass.cs b/src/Generator/Passes/FindSymbolsPass.cs index 4e4f33f6..4021e813 100644 --- a/src/Generator/Passes/FindSymbolsPass.cs +++ b/src/Generator/Passes/FindSymbolsPass.cs @@ -44,6 +44,7 @@ namespace CppSharp.Passes manualResetEvent = new ManualResetEvent(false); manualResetEvent.WaitOne(); } + return base.VisitASTContext(context); }