summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cpp/30974-using-alias-in-define.cpp
blob: 1b4153d85773ed9d76adaf63d115df9ef150b1c5 (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); }