Explorar o código

cmState::Snapshot: Provide accessor for the cmState.

Stephen Kelly %!s(int64=10) %!d(string=hai) anos
pai
achega
a824415724
Modificáronse 2 ficheiros con 7 adicións e 0 borrados
  1. 5 0
      Source/cmState.cxx
  2. 2 0
      Source/cmState.h

+ 5 - 0
Source/cmState.cxx

@@ -787,3 +787,8 @@ cmState::Snapshot cmState::Snapshot::GetBuildsystemDirectoryParent() const
 
   return snapshot;
 }
+
+cmState* cmState::Snapshot::GetState() const
+{
+  return this->State;
+}

+ 2 - 0
Source/cmState.h

@@ -47,6 +47,8 @@ public:
     bool IsValid() const;
     Snapshot GetBuildsystemDirectoryParent() const;
 
+    cmState* GetState() const;
+
   private:
     void ComputeRelativePathTopSource();
     void ComputeRelativePathTopBinary();