R
rhXX
hi all,
i want to define a group of consts for bits
#define BIT0 (1 << 0)
#define BIT1 (1 << 1)
....
#define BITi (1 << i)
is it a way to do it more elegant? or at least to put "i" as parameter
of other macro?
how i can do some like this???
#define BITX(i) #define BIT##i (1 << i)
tks in advance
i want to define a group of consts for bits
#define BIT0 (1 << 0)
#define BIT1 (1 << 1)
....
#define BITi (1 << i)
is it a way to do it more elegant? or at least to put "i" as parameter
of other macro?
how i can do some like this???
#define BITX(i) #define BIT##i (1 << i)
tks in advance