It would seem that the compiler expects something on the same row as the #define. This seems to solve the problem:
#define PACK8(x,y) { \
CLEAR8(0, x, 0xff); \
PUT8(0, x, y, 0xff); \
}What the C standard says, I have no idea.
However, why not write a real function instead? Most modern compilers, including CW, supports inlining, so there is never a reason to use function-like macros.
Message Edited by Lundin on 2009-09-01 03:59 PM