diff --git a/base/dependencies/macros.hpp b/base/dependencies/macros.hpp index 29b559a..53e6c90 100644 --- a/base/dependencies/macros.hpp +++ b/base/dependencies/macros.hpp @@ -35,6 +35,9 @@ #ifndef bit #define bit( Value ) ( 1 << Value ) +#endif + +#ifndef bitfield_is_set #define bitfield_is_set( Type, Field, Mask ) ( (scast(Type, Mask) & scast(Type, Field)) == scast(Type, Mask) ) #endif