Browse Source

Move source code overload.

pull/778/head
Joao Matos 9 years ago
parent
commit
8f5831d37e
  1. 33
      src/Generator/Generators/CodeGenerator.cs

33
src/Generator/Generators/CodeGenerator.cs

@ -61,6 +61,23 @@ namespace CppSharp.Generators @@ -61,6 +61,23 @@ namespace CppSharp.Generators
return base.Generate();
}
public virtual void GenerateFilePreamble(CommentKind kind)
{
var lines = new List<string>
{
"----------------------------------------------------------------------------",
"<auto-generated>",
"This is autogenerated code by CppSharp.",
"Do not edit this file or all your changes will be lost after re-generation.",
"</auto-generated>",
"----------------------------------------------------------------------------"
};
PushBlock(BlockKind.Header);
GenerateMultiLineComment(lines, kind);
PopBlock();
}
public virtual void GenerateDeclarationCommon(Declaration decl)
{
if (decl.Comment != null)
@ -146,22 +163,6 @@ namespace CppSharp.Generators @@ -146,22 +163,6 @@ namespace CppSharp.Generators
#endregion
public virtual void GenerateFilePreamble(CommentKind kind)
{
var lines = new List<string>
{
"----------------------------------------------------------------------------",
"<auto-generated>",
"This is autogenerated code by CppSharp.",
"Do not edit this file or all your changes will be lost after re-generation.",
"</auto-generated>",
"----------------------------------------------------------------------------"
};
PushBlock(BlockKind.Header);
GenerateMultiLineComment(lines, kind);
PopBlock();
}
#region Visitor methods

Loading…
Cancel
Save