aboutsummaryrefslogtreecommitdiff
path: root/libbutl/b.ixx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2022-12-12 18:35:08 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2022-12-12 18:38:12 +0300
commit8cc86445437e7afc583dee18b36c0e8ba4b6fe12 (patch)
tree2215464b2434c5e34d748bb08f58b39a34aefd6e /libbutl/b.ixx
parent82982e037dea53b334070699471e682fb023dc9e (diff)
Add support for omitting sub-projects from b_info() result
Diffstat (limited to 'libbutl/b.ixx')
-rw-r--r--libbutl/b.ixx31
1 files changed, 31 insertions, 0 deletions
diff --git a/libbutl/b.ixx b/libbutl/b.ixx
new file mode 100644
index 0000000..1667101
--- /dev/null
+++ b/libbutl/b.ixx
@@ -0,0 +1,31 @@
+// file : libbutl/b.ixx -*- C++ -*-
+// license : MIT; see accompanying LICENSE file
+
+namespace butl
+{
+ // b_info_flags
+ //
+ inline b_info_flags operator& (b_info_flags x, b_info_flags y)
+ {
+ return x &= y;
+ }
+
+ inline b_info_flags operator| (b_info_flags x, b_info_flags y)
+ {
+ return x |= y;
+ }
+
+ inline b_info_flags operator&= (b_info_flags& x, b_info_flags y)
+ {
+ return x = static_cast<b_info_flags> (
+ static_cast<std::uint16_t> (x) &
+ static_cast<std::uint16_t> (y));
+ }
+
+ inline b_info_flags operator|= (b_info_flags& x, b_info_flags y)
+ {
+ return x = static_cast<b_info_flags> (
+ static_cast<std::uint16_t> (x) |
+ static_cast<std::uint16_t> (y));
+ }
+}