Browse Source

Added Declaration.IsExplicitlyGenerated.

pull/304/head
Tom Spilman 12 years ago
parent
commit
17506c57d1
  1. 12
      src/AST/Declaration.cs

12
src/AST/Declaration.cs

@ -215,6 +215,18 @@ namespace CppSharp.AST @@ -215,6 +215,18 @@ namespace CppSharp.AST
}
}
/// <summary>
/// Whether the declaration was explicitly set to be generated via
/// the GenerationKind propery as opposed to its default generated state.
/// </summary>
public virtual bool IsExplicitlyGenerated
{
get
{
return generationKind.HasValue && generationKind.Value == GenerationKind.Generate;
}
}
/// <summary>
/// Whether the declaration internal bindings should be generated.
/// </summary>

Loading…
Cancel
Save