Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Hoffman
CMake
Commits
0a01e6c6
Commit
0a01e6c6
authored
Jul 26, 2015
by
Stephen Kelly
Browse files
cmState: Add Snapshot Type accessor.
parent
f0005bb4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Source/cmState.cxx
View file @
0a01e6c6
...
...
@@ -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
();
...
...
Source/cmState.h
View file @
0a01e6c6
...
...
@@ -56,6 +56,7 @@ public:
bool
IsValid
()
const
;
Snapshot
GetBuildsystemDirectoryParent
()
const
;
Snapshot
GetCallStackParent
()
const
;
SnapshotType
GetType
()
const
;
void
InitializeFromParent
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment