I hate to bring this up as it confuses the situation. Some C code defines constants as binary then ANDs them together to pass to a function as a single byte.Hi,
I have lines like;
blah (apple OR banana OR orange OR peach)
and similarly:
blah (apple AND banana AND orange AND peach)
When using the suggestions does it matter if they are 'done' in different orders? In other words, if I first (apple OR banana) then (orange OR peach) then (res1 OR res2) or 'say' OR each fruit as I go along? Similarly for AND.
C.
E.G.
Code:
#define apple 0b1111110
#define banana 0b1111101
#define orange 0b1111011
#define peach 0b1110111
return = somefunction(apple&pear);
Mike.