Browse Source

Added generator name parameter to file preamble generation.

pull/829/head
Joao Matos 8 years ago
parent
commit
9b277c15b4
  1. 6
      src/Generator/Generators/CodeGenerator.cs

6
src/Generator/Generators/CodeGenerator.cs

@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -64,13 +64,13 @@ namespace CppSharp.Generators @@ -64,13 +64,13 @@ namespace CppSharp.Generators
return base.Generate();
}
public virtual void GenerateFilePreamble(CommentKind kind)
public virtual void GenerateFilePreamble(CommentKind kind, string generatorName = "CppSharp")
{
var lines = new List<string>
{
"----------------------------------------------------------------------------",
"<auto-generated>",
"This is autogenerated code by CppSharp.",
$"This is autogenerated code by {generatorName}.",
"Do not edit this file or all your changes will be lost after re-generation.",
"</auto-generated>",
"----------------------------------------------------------------------------"

Loading…
Cancel
Save