Browse Source

Fixed the wrapping of free functions when using the single-file option.

Signed-off-by: Dimitar Dobrev <dpldobrev@yahoo.com>
pull/326/head
Dimitar Dobrev 11 years ago
parent
commit
edabc9d0af
  1. 2
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

2
src/Generator/Generators/CSharp/CSharpTextTemplate.cs

@ -214,7 +214,7 @@ namespace CppSharp.Generators.CSharp @@ -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);

Loading…
Cancel
Save