From 62015b08e45c33f7d718a48ecbf1997aa369b34e Mon Sep 17 00:00:00 2001 From: triton Date: Sat, 17 Aug 2013 02:23:44 +0100 Subject: [PATCH] Added some helper properties to check generator kind. --- src/Generator/Driver.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Generator/Driver.cs b/src/Generator/Driver.cs index 6d553e09..e00463ca 100644 --- a/src/Generator/Driver.cs +++ b/src/Generator/Driver.cs @@ -266,6 +266,16 @@ namespace CppSharp public Func 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