14.08.2011, 08:33
Since you have made the Bit_Set/Get functions general, how about making the whole syntax general?
However, I'm not sure if it works^^
pawn Код:
#define Bit<%0>:%1<%2> \
Bit%0: %1[((%2) + (32 / (Bit%0 + 1)) - 1) >>> _: (Bit32 - Bit%0)]
#define SetBit<%0>(%1,%2,%3) \
Bit_Set(%1, (%2), %3, Bit%0)
#define GetBit<%0>(%1,%2) \
Bit_Get(%1, (%2), Bit%0)