Browse Source

Avoid mismatched braces when the decl is neither a Function nor a Field

pull/86/head
Stephen Kennedy 12 years ago
parent
commit
84f0942a76
  1. 3
      src/Generator/Generators/CSharp/CSharpTextTemplate.cs

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

@ -858,6 +858,7 @@ namespace CppSharp.Generators.CSharp @@ -858,6 +858,7 @@ namespace CppSharp.Generators.CSharp
var parameters = new List<Parameter> { param };
GenerateInternalFunctionCall(function, parameters);
}
WriteCloseBraceIndent();
}
else if (decl is Field)
{
@ -878,9 +879,9 @@ namespace CppSharp.Generators.CSharp @@ -878,9 +879,9 @@ namespace CppSharp.Generators.CSharp
Helpers.SafeIdentifier(field.OriginalName), marshal.Context.Return);
WriteLine(";");
WriteCloseBraceIndent();
}
WriteCloseBraceIndent();
PopBlock(NewLineKind.BeforeNextBlock);
}

Loading…
Cancel
Save