|
|
|
@ -61,6 +61,23 @@ namespace CppSharp.Generators |
|
|
|
return base.Generate(); |
|
|
|
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) |
|
|
|
public virtual void GenerateDeclarationCommon(Declaration decl) |
|
|
|
{ |
|
|
|
{ |
|
|
|
if (decl.Comment != null) |
|
|
|
if (decl.Comment != null) |
|
|
|
@ -146,22 +163,6 @@ namespace CppSharp.Generators |
|
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
#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
|
|
|
|
#region Visitor methods
|
|
|
|
|
|
|
|
|
|
|
|
|