News for hackers. Stuff that matters.
Re:Is This a Branch? by Liquid_Fire on Tuesday February 16, 2021 @07:35AM (#26153286)
I don't advocate the use of this macro, but if you do use it you should really wrap the parameters and the whole expression in parentheses to avoid precedence issues:

  #define TERN(c, a, b) ((c) ? (a) : (b))
Re:Is This a Branch? by sophistc on Tuesday February 16, 2021 @09:20AM (#26154062)
Exactly, this is C macro 101.