From 7f75ad6ef8ca9c1a2b87f860e4287b32c14845f3 Mon Sep 17 00:00:00 2001 From: Gabriel Ravier Date: Mon, 13 May 2019 14:20:39 +0200 Subject: [PATCH] Added comment for macros --- src/Flags.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Flags.cpp b/src/Flags.cpp index 3ab98ce9..afc3706a 100644 --- a/src/Flags.cpp +++ b/src/Flags.cpp @@ -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))