summaryrefslogtreecommitdiffstats
path: root/Source/cmDefinitions.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-04-29 22:19:55 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-05-01 17:34:59 (GMT)
commit8b1745a1c5ed992e632bd4865c0f6a34b136041d (patch)
tree8687b5bf485fb9ee23106e9255ee0a85ecde2448 /Source/cmDefinitions.h
parente8ae46e5e228cc3008e64766e6c8da48b1835545 (diff)
downloadCMake-8b1745a1c5ed992e632bd4865c0f6a34b136041d.zip
CMake-8b1745a1c5ed992e632bd4865c0f6a34b136041d.tar.gz
CMake-8b1745a1c5ed992e632bd4865c0f6a34b136041d.tar.bz2
cmDefinitions: Accept varStack iterators in Get API.
Diffstat (limited to 'Source/cmDefinitions.h')
-rw-r--r--Source/cmDefinitions.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmDefinitions.h b/Source/cmDefinitions.h
index 4c7f11f..2bcfcb0 100644
--- a/Source/cmDefinitions.h
+++ b/Source/cmDefinitions.h
@@ -37,7 +37,9 @@ public:
/** Get the value associated with a key; null if none.
Store the result locally if it came from a parent. */
- const char* Get(const std::string& key);
+ const char* Get(const std::string& key,
+ std::list<cmDefinitions>::reverse_iterator rbegin,
+ std::list<cmDefinitions>::reverse_iterator rend);
/** Set (or unset if null) a value associated with a key. */
void Set(const std::string& key, const char* value);
@@ -81,7 +83,9 @@ private:
MapType Map;
// Internal query and update methods.
- Def const& GetInternal(const std::string& key);
+ Def const& GetInternal(const std::string& key,
+ std::list<cmDefinitions>::reverse_iterator rbegin,
+ std::list<cmDefinitions>::reverse_iterator rend);
void MakeClosure(std::set<std::string>& undefined,
std::list<cmDefinitions>::const_reverse_iterator rbegin,