From 16fc3fa37952545a27a32e15a136804987425b9c Mon Sep 17 00:00:00 2001 From: Ed_ Date: Tue, 28 Jan 2025 21:09:27 -0500 Subject: [PATCH] Separate ifndef for bitfield_is_set --- base/dependencies/macros.hpp | 3 +++ 1 file changed, 3 insertions(+) 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