Browse Source

Added C# regions to organize and group options by categories.

pull/750/head
Joao Matos 9 years ago
parent
commit
71f60c46fd
  1. 18
      src/Generator/Options.cs

18
src/Generator/Options.cs

@ -28,7 +28,7 @@ namespace CppSharp @@ -28,7 +28,7 @@ namespace CppSharp
ExplicitlyPatchedVirtualFunctions = new HashSet<string>();
}
// General options
#region General options
/// <summary>
/// Set to true to enable quiet output mode.
@ -51,7 +51,9 @@ namespace CppSharp @@ -51,7 +51,9 @@ namespace CppSharp
/// </summary>
public bool CompileCode;
// Parser options
#endregion
#region Parser options
/// <summary>
/// If this option is off (the default), each header is parsed separately
@ -60,6 +62,8 @@ namespace CppSharp @@ -60,6 +62,8 @@ namespace CppSharp
/// </summary>
public bool UnityBuild { get; set; }
#endregion
#region Module options
public Module SystemModule { get; }
@ -109,9 +113,15 @@ namespace CppSharp @@ -109,9 +113,15 @@ namespace CppSharp
set { MainModule.TemplatesLibraryName = value; }
}
public bool DoAllModulesHaveLibraries() =>
Modules.All(m => m == SystemModule || m.Libraries.Count > 0);
#endregion
#endregion
// Generator options
#region Generator options
public GeneratorKind GeneratorKind;
public bool CheckSymbols;
@ -170,8 +180,6 @@ namespace CppSharp @@ -170,8 +180,6 @@ namespace CppSharp
/// </summary>
public HashSet<string> ExplicitlyPatchedVirtualFunctions { get; }
public bool DoAllModulesHaveLibraries() =>
Modules.All(m => m == SystemModule || m.Libraries.Count > 0);
}
public class InvalidOptionException : Exception

Loading…
Cancel
Save