cmState: Add Snapshot Type accessor.

This commit is contained in:
Stephen Kelly 2015-07-26 12:54:16 +02:00
parent f0005bb484
commit 0a01e6c6e7
2 changed files with 6 additions and 0 deletions

View File

@ -847,6 +847,11 @@ cmState::Snapshot::Snapshot(cmState* state, PositionType position)
}
cmState::SnapshotType cmState::Snapshot::GetType() const
{
return this->Position->SnapshotType;
}
const char* cmState::Directory::GetCurrentSource() const
{
return this->DirectoryState->Location.c_str();

View File

@ -56,6 +56,7 @@ public:
bool IsValid() const;
Snapshot GetBuildsystemDirectoryParent() const;
Snapshot GetCallStackParent() const;
SnapshotType GetType() const;
void InitializeFromParent();