소스 검색

cmState::Snapshot: Provide accessor for the cmState.

Stephen Kelly 10 년 전
부모
커밋
a824415724
2개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  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();