* R=(__max (__min (r2, 1), 0));
* G=(__max (__min (g2, 1), 0));
* B=(__max (__min (b2, 1), 0));
I'm bcb6.0 compiler pass, could you tell me how to rewrite the above statement?
CodePudding user response:
His definition:# define __max (a, b) ((a) & gt; (b)? (a) : (b))
# define __min (a, b) ((a) & lt; (b)? (a) : (b))
CodePudding user response:
Can separate write, read some,