summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmState.cxx5
-rw-r--r--Source/cmState.h1
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();