mirror of https://github.com/AxioDL/boo.git
Add ifndef before ENABLE_BITWISE_ENUM
This commit is contained in:
parent
84b78f2962
commit
e7cbf17150
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
|
#ifndef ENABLE_BITWISE_ENUM
|
||||||
#define ENABLE_BITWISE_ENUM(type)\
|
#define ENABLE_BITWISE_ENUM(type)\
|
||||||
inline type operator|(type a, type b)\
|
inline type operator|(type a, type b)\
|
||||||
{\
|
{\
|
||||||
|
@ -31,6 +32,7 @@ inline type operator~(const type& key)\
|
||||||
using T = std::underlying_type_t<type>;\
|
using T = std::underlying_type_t<type>;\
|
||||||
return type(~static_cast<T>(key));\
|
return type(~static_cast<T>(key));\
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace boo
|
namespace boo
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue