Browse Source

Added some helper properties to check generator kind.

pull/43/head
triton 12 years ago
parent
commit
62015b08e4
  1. 10
      src/Generator/Driver.cs

10
src/Generator/Driver.cs

@ -266,6 +266,16 @@ namespace CppSharp @@ -266,6 +266,16 @@ namespace CppSharp
public Func<TranslationUnit, string> GenerateName;
public int MaxIndent;
public string CommentPrefix;
public bool IsCSharpGenerator
{
get { return GeneratorKind == LanguageGeneratorKind.CSharp; }
}
public bool IsCLIGenerator
{
get { return GeneratorKind == LanguageGeneratorKind.CPlusPlusCLI; }
}
}
public class InvalidOptionException : Exception

Loading…
Cancel
Save