diff --git a/src/Generator/Generators/Template.cs b/src/Generator/Generators/Template.cs index e0827000..927d3c49 100644 --- a/src/Generator/Generators/Template.cs +++ b/src/Generator/Generators/Template.cs @@ -165,6 +165,17 @@ namespace CppSharp.Generators return builder.ToString(); } + public bool IsEmpty + { + get + { + if (Blocks.Any(block => !block.IsEmpty)) + return false; + + return string.IsNullOrEmpty(Text.ToString()); + } + } + #region ITextGenerator implementation public uint Indent { get { return Text.Indent; } }