Browse Source

Rename the OutputDebug option to GenerateDebugOutput and document it.

pull/750/head
Joao Matos 9 years ago
parent
commit
c42bd6eeaa
  1. 2
      src/Generator/Generators/CLI/CLITemplate.cs
  2. 2
      src/Generator/Generators/CSharp/CSharpSources.cs
  3. 7
      src/Generator/Options.cs

2
src/Generator/Generators/CLI/CLITemplate.cs

@ -143,7 +143,7 @@ namespace CppSharp.Generators.CLI
public void GenerateDebug(Declaration decl) public void GenerateDebug(Declaration decl)
{ {
if (Options.OutputDebug && !String.IsNullOrWhiteSpace(decl.DebugText)) if (Options.GenerateDebugOutput && !string.IsNullOrWhiteSpace(decl.DebugText))
WriteLine("// DEBUG: " + decl.DebugText); WriteLine("// DEBUG: " + decl.DebugText);
} }

2
src/Generator/Generators/CSharp/CSharpSources.cs

@ -383,7 +383,7 @@ namespace CppSharp.Generators.CSharp
public void GenerateDebug(Declaration decl) public void GenerateDebug(Declaration decl)
{ {
if (Options.OutputDebug && !string.IsNullOrWhiteSpace(decl.DebugText)) if (Options.GenerateDebugOutput && !string.IsNullOrWhiteSpace(decl.DebugText))
WriteLine("// DEBUG: " + decl.DebugText); WriteLine("// DEBUG: " + decl.DebugText);
} }

7
src/Generator/Options.cs

@ -34,7 +34,6 @@ namespace CppSharp
/// Set to true to enable quiet output mode. /// Set to true to enable quiet output mode.
/// </summary> /// </summary>
public bool Quiet; public bool Quiet;
public bool OutputDebug;
/// <summary> /// <summary>
/// Set to true to enable verbose output mode. /// Set to true to enable verbose output mode.
@ -97,6 +96,12 @@ namespace CppSharp
public bool GenerateInternalImports; public bool GenerateInternalImports;
public bool UseHeaderDirectories; public bool UseHeaderDirectories;
/// <summary>
/// If set to true, the generated code will be generated with extra
/// debug output.
/// </summary>
public bool GenerateDebugOutput;
/// <summary> /// <summary>
/// If set to true the CLI generator will use ObjectOverridesPass to create /// If set to true the CLI generator will use ObjectOverridesPass to create
/// Equals, GetHashCode and (if the insertion operator &lt;&lt; is overloaded) ToString /// Equals, GetHashCode and (if the insertion operator &lt;&lt; is overloaded) ToString

Loading…
Cancel
Save