From edabc9d0af2eaaecf56c9ce2d4c2f0ba1ec9224b Mon Sep 17 00:00:00 2001 From: Dimitar Dobrev Date: Tue, 23 Sep 2014 20:12:07 +0300 Subject: [PATCH] Fixed the wrapping of free functions when using the single-file option. Signed-off-by: Dimitar Dobrev --- src/Generator/Generators/CSharp/CSharpTextTemplate.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs index 6454db61..13749b14 100644 --- a/src/Generator/Generators/CSharp/CSharpTextTemplate.cs +++ b/src/Generator/Generators/CSharp/CSharpTextTemplate.cs @@ -214,7 +214,7 @@ namespace CppSharp.Generators.CSharp { PushBlock(CSharpBlockKind.Functions); WriteLine("public unsafe partial class {0}", - TranslationUnits[0].FileNameWithoutExtension); + context.TranslationUnit.FileNameWithoutExtension); WriteStartBraceIndent(); PushBlock(CSharpBlockKind.InternalsClass);