Simplify a comment in Flags.cpp

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
Gabriel Ravier 2019-05-15 17:46:14 +02:00
parent 92a2327187
commit 0e0cbf9409
No known key found for this signature in database
GPG key ID: 1E75F156884F3DCE

View file

@ -4,8 +4,8 @@
#include "WindowsWrapper.h"
// Macros for setting, un-setting and getting bits
// Each flag is stored in a bit, so we can use the exact same macros for this (not defining BIT macros for conciseness)
// Macros for setting, un-setting and getting flags
// Each flag is stored in a bit, so we can use the exact same macros we'd use for bits
#define SET_FLAG(x, i) ((x)[(i) / 8] |= 1 << (i) % 8)
#define UNSET_FLAG(x, i) ((x)[(i) / 8] &= ~(1 << (i) % 8))
#define GET_FLAG(x, i) ((x)[(i) / 8] & (1 << (i) % 8))