Added comment for macros
This commit is contained in:
parent
df119e69d7
commit
7f75ad6ef8
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
unsigned char gFlagNPC[1000];
|
||||
unsigned char gSkipFlag[8];
|
||||
|
||||
// Macros for setting, un-setting and getting bits
|
||||
#define SET_BIT(x, i) ((x)[(i) / 8] |= 1 << (i) % 8)
|
||||
#define UNSET_BIT(x, i) ((x)[(i) / 8] &= ~(1 << (i) % 8))
|
||||
#define GET_BIT(x, i) ((x)[(i) / 8] & (1 << (i) % 8))
|
||||
|
|
Loading…
Add table
Reference in a new issue