I have a macro that fetch's the J-th bit of an integer:
#define TWO_TO_THE(POWER) (1 << POWER)
#define JTH_BIT(BITS, J) ((TWO_TO_THE((J-1)) & BITS) != 0)
However, I can't use it from gdb by issuing the command print JTH_BIT(i,j), can macros in C even be used while debugging?
clangand the assumed duplicate is aboutgcc.