Am Mittwoch, 9. Mai 2012, 23:32:10 schrieb Józef Kucia:
> +#define check_pixel_3bpp(lockrect, x, y, color) \
> +ok(((BYTE*)(lockrect).pBits)[3 * (x) + (y) * (lockrect).Pitch + 0] ==
> ...
Inline functions are generally prefered over macros where possible. I think it
is possible to pass a different line number to ok() to make the messages more
useful when they are called from a helper function, but I don't know how off
the top of my head. If you have to use a macro, please use capital letters.