Added comment for macros

This commit is contained in:
Gabriel Ravier 2019-05-13 14:20:39 +02:00
parent df119e69d7
commit 7f75ad6ef8
No known key found for this signature in database
GPG key ID: 1E75F156884F3DCE

View file

@ -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))