Browse Source

Merge pull request #326 from ddobrev/master

Fixed the wrapping of free functions when using the single-file option
pull/327/head
João Matos 11 years ago
parent
commit
097f8814cb
  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