summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.72.0/tests/input/cpp/using-alias-in-define.cpp
blob: 828542872b63c58c4cd993e599c8b05d4f17a219 (plain)
1
2
3
4
5
6
#define UNC_DECLARE_FLAGS(flag_type, enum_type) \
   using flag_type = flags<enum_type>

#define UNC_DECLARE_OPERATORS_FOR_FLAGS(flag_type)                        \
   inline flag_type operator&(flag_type::enum_t f1, flag_type::enum_t f2) \
   { return(flag_type { f1 } & f2); }