So I have this 'check' macro which takes two arguments :
#define check(reg, n) ((reg >> n) & 1U)
And I have this argument list :
#define TEST_ARGS 10, 1
The code :
check(TEST_ARGS);
Expected expansion :
((10 >> 1) & 1U)
Real expansion :
((10, 1 >> ) & 1U)
How do I define multiple arguments for "check" macro to get expected results?
Many Thanks.