diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-06 11:30:04 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2022-06-06 11:30:04 +0200 |
commit | 38db461e03e949916221f7ae99b06751a3d05cce (patch) | |
tree | 94974621ad13ac162100cbb7872c4d89411f6e9d /libbuild2/config/utility.hxx | |
parent | ef130e855b5ac0f4acbb8b5b6fcd14069df8afe5 (diff) |
Add another config::origin() overload
Diffstat (limited to 'libbuild2/config/utility.hxx')
-rw-r--r-- | libbuild2/config/utility.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/config/utility.hxx b/libbuild2/config/utility.hxx index b998e3c..1e33568 100644 --- a/libbuild2/config/utility.hxx +++ b/libbuild2/config/utility.hxx @@ -514,6 +514,14 @@ namespace build2 LIBBUILD2_SYMEXPORT pair<variable_origin, lookup> origin (const scope& rs, const variable&); + + // As above but using the result of scope::lookup_original() or + // semantically equivalent (e.g., lookup_namespace()). + // + // Note that this version does not check that the variable is config.*. + // + LIBBUILD2_SYMEXPORT pair<variable_origin, lookup> + origin (const scope& rs, const variable&, pair<lookup, size_t> original); } } |