Returns a value limited to the specified range.
Warning: This macro evaluates its arguments more than once.