Simplify a comment in Flags.cpp
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
This commit is contained in:
parent
92a2327187
commit
0e0cbf9409
1 changed files with 2 additions and 2 deletions
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
#include "WindowsWrapper.h"
|
#include "WindowsWrapper.h"
|
||||||
|
|
||||||
// Macros for setting, un-setting and getting bits
|
// Macros for setting, un-setting and getting flags
|
||||||
// Each flag is stored in a bit, so we can use the exact same macros for this (not defining BIT macros for conciseness)
|
// 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 SET_FLAG(x, i) ((x)[(i) / 8] |= 1 << (i) % 8)
|
||||||
#define UNSET_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))
|
#define GET_FLAG(x, i) ((x)[(i) / 8] & (1 << (i) % 8))
|
||||||
|
|
Loading…
Add table
Reference in a new issue