"ingo" <nomail@nomail> wrote:
> But not always straight forward,
> it needs some thought and the code is way more complex than this. (#switch #case
> can be an alternative after turning the conditions into "states")
Maybe fall back onto using some small helper macros just to keep the statements
short and the logic straight.
Or, potentially what you could do is multiply the pseudo-Boolean values instead
of using the "&" operator.
0*0 = 0
0*1=1
1*0=0
- BW
Post a reply to this message
|