diff options
Diffstat (limited to 'Source/cmState.h')
-rw-r--r-- | Source/cmState.h | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/Source/cmState.h b/Source/cmState.h index 4fcbb00..8f0b5ee 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -30,6 +30,21 @@ struct PolicyStackEntry; typedef cmLinkedTree<cmStateDetail::SnapshotDataType>::iterator PositionType; } +namespace cmStateEnums { + +enum SnapshotType +{ + BaseType, + BuildsystemDirectoryType, + FunctionCallType, + MacroCallType, + IncludeFileType, + InlineListFileType, + PolicyScopeType, + VariableScopeType +}; +} + class cmState { @@ -37,18 +52,6 @@ public: cmState(); ~cmState(); - enum SnapshotType - { - BaseType, - BuildsystemDirectoryType, - FunctionCallType, - MacroCallType, - IncludeFileType, - InlineListFileType, - PolicyScopeType, - VariableScopeType - }; - class Directory; class Snapshot @@ -75,7 +78,7 @@ public: Snapshot GetBuildsystemDirectoryParent() const; Snapshot GetCallStackParent() const; Snapshot GetCallStackBottom() const; - SnapshotType GetType() const; + cmStateEnums::SnapshotType GetType() const; void SetPolicy(cmPolicies::PolicyID id, cmPolicies::PolicyStatus status); cmPolicies::PolicyStatus GetPolicy(cmPolicies::PolicyID id) const; |