|
|
|
@ -76,6 +76,15 @@ namespace CppSharp.Generators.CLI
@@ -76,6 +76,15 @@ namespace CppSharp.Generators.CLI
|
|
|
|
|
return string.Format("{0}", decl.QualifiedName); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void GenerateDeclarationCommon(Declaration decl) |
|
|
|
|
{ |
|
|
|
|
if (decl.Comment == null) |
|
|
|
|
return; |
|
|
|
|
|
|
|
|
|
GenerateSummary(decl.Comment.BriefText); |
|
|
|
|
GenerateDebug(decl); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void GenerateSummary(string comment) |
|
|
|
|
{ |
|
|
|
|
if (string.IsNullOrWhiteSpace(comment)) |
|
|
|
@ -98,6 +107,12 @@ namespace CppSharp.Generators.CLI
@@ -98,6 +107,12 @@ namespace CppSharp.Generators.CLI
|
|
|
|
|
PopBlock(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void GenerateDebug(Declaration decl) |
|
|
|
|
{ |
|
|
|
|
if (Options.OutputDebug && !String.IsNullOrWhiteSpace(decl.DebugText)) |
|
|
|
|
WriteLine("// DEBUG: " + decl.DebugText); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void GenerateMethodParameters(Method method) |
|
|
|
|
{ |
|
|
|
|
for (var i = 0; i < method.Parameters.Count; ++i) |
|
|
|
|