diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-07-31 09:34:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-07-31 09:34:05 +0200 |
commit | b13b031b2b8a7390d1dd4b2658d0f0b62e43db47 (patch) | |
tree | f4d2d12c6717541ec7d2b56cfafa25ebd73070d9 /libbuild2/variable.hxx | |
parent | e122c6ff4a7f21026332ce9211ad095bd44e71ea (diff) |
Add lookup limit to {scope,target}::lookup_original()
Diffstat (limited to 'libbuild2/variable.hxx')
-rw-r--r-- | libbuild2/variable.hxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libbuild2/variable.hxx b/libbuild2/variable.hxx index 6dfbbc6..eebb767 100644 --- a/libbuild2/variable.hxx +++ b/libbuild2/variable.hxx @@ -612,6 +612,15 @@ namespace build2 vars (v != nullptr ? m : nullptr) {} }; + // Variable lookup limit (see {scope,target}::lookup_original()). + // + enum class lookup_limit + { + none, + target_type, + target + }; + // Two lookups are equal if they point to the same variable. // inline bool |