diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-09 10:50:42 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-07-09 10:50:42 +0200 |
commit | 101987533ca35e4aa3515b25415f1abba46e796f (patch) | |
tree | 076fcafb99a6d6c4d10b9eb1ad965d2b6748e260 /libbuild2/name.hxx | |
parent | 932519463bca296054a3b5a8e07ad3505160a91b (diff) |
Add support for ad hoc importation
Diffstat (limited to 'libbuild2/name.hxx')
-rw-r--r-- | libbuild2/name.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libbuild2/name.hxx b/libbuild2/name.hxx index 8756cb7..b25a3e3 100644 --- a/libbuild2/name.hxx +++ b/libbuild2/name.hxx @@ -101,6 +101,18 @@ namespace build2 return (ignore_qual || unqualified ()) && untyped () && !value.empty (); } + bool + absolute () const + { + return !dir.empty () && dir.absolute (); + } + + bool + relative () const + { + return dir.empty () || dir.relative (); + } + int compare (const name&) const; }; |