| 138 | } |
| 139 | |
| 140 | cmStateSnapshot cmStateSnapshot::GetCallStackBottom() const |
| 141 | { |
| 142 | assert(this->State); |
| 143 | assert(this->Position != this->State->SnapshotData.Root()); |
| 144 | |
| 145 | cmStateDetail::PositionType pos = this->Position; |
| 146 | while (pos->SnapshotType != cmStateEnums::BaseType && |
| 147 | pos->SnapshotType != cmStateEnums::BuildsystemDirectoryType && |
| 148 | pos != this->State->SnapshotData.Root()) { |
| 149 | ++pos; |
| 150 | } |
| 151 | return { this->State, pos }; |
| 152 | } |
| 153 | |
| 154 | void cmStateSnapshot::PushPolicy(cmPolicies::PolicyMap const& entry, bool weak) |
| 155 | { |