Define RCSW_MAX_

Define Documentation

RCSW_MAX_(t1, t2, max1, max2, a, b)

Gets the maximum of (a, b) while also performing a type comparison. If the arguments do not have the same type, a compiler warning will be issued. You have to EXPLICITLY cast, which is a good thing. Don’t want to get weird behavior when taking the max/min of different types.The type checking will be compiled away at high optimization levels.