diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-01-25 15:41:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:39:24 +0200 |
commit | 88f0780e34116c0441a8d8c58b8a8fd9fde4b1f5 (patch) | |
tree | 1240b36211772479dc1220712e0daed4e35ecd85 /build2/config/utility | |
parent | 61aa8e2b4bd7849838c04dc1f421c4760d88319f (diff) |
Add model mutex, make var_pool const by default
Diffstat (limited to 'build2/config/utility')
-rw-r--r-- | build2/config/utility | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/build2/config/utility b/build2/config/utility index 6c18715..e4e463d 100644 --- a/build2/config/utility +++ b/build2/config/utility @@ -44,6 +44,8 @@ namespace build2 bool override = false, uint64_t save_flags = 0); + // Note that the variable is expected to have already been registered. + // template <typename T> inline pair<lookup, bool> required (scope& root, @@ -76,6 +78,8 @@ namespace build2 pair<lookup, bool> omitted (scope& root, const variable&); + // Note that the variable is expected to have already been registered. + // inline pair<lookup, bool> omitted (scope& root, const string& name) { @@ -91,10 +95,12 @@ namespace build2 lookup optional (scope& root, const variable&); + // Note that the variable is expected to have already been registered. + // inline lookup - optional (scope& root, const string& var) + optional (scope& root, const string& name) { - return optional (root, var_pool[var]); + return optional (root, var_pool[name]); } // Check whether there are any variables specified from the config |