diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-07-26 10:54:16 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-08-01 05:18:34 (GMT) |
commit | 0a01e6c6e7bd428ca0ec99a00924b5b498c6e637 (patch) | |
tree | c9a2fe2068ca9c9092ddfa328433cf456bb1d8e8 | |
parent | f0005bb484bc2b85a169ef7816e33d8e2f16e109 (diff) | |
download | CMake-0a01e6c6e7bd428ca0ec99a00924b5b498c6e637.zip CMake-0a01e6c6e7bd428ca0ec99a00924b5b498c6e637.tar.gz CMake-0a01e6c6e7bd428ca0ec99a00924b5b498c6e637.tar.bz2 |
cmState: Add Snapshot Type accessor.
-rw-r--r-- | Source/cmState.cxx | 5 | ||||
-rw-r--r-- | Source/cmState.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index d8f8306..a466471 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -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(); diff --git a/Source/cmState.h b/Source/cmState.h index 0d5300f..23fbc79 100644 --- a/Source/cmState.h +++ b/Source/cmState.h @@ -56,6 +56,7 @@ public: bool IsValid() const; Snapshot GetBuildsystemDirectoryParent() const; Snapshot GetCallStackParent() const; + SnapshotType GetType() const; void InitializeFromParent(); |