P99

◆ P99_IS_MAX

#define P99_IS_MAX (   FIRST,
  ... 
)    P99_FOR(<= (FIRST), P99_NARG(__VA_ARGS__), P00_AND, P00_ISIT, __VA_ARGS__)

Check if argument FIRST is strictly greater than the other elements in the list.

Use this as follows:

if (P99_IS_MAX(a, b, c, d, e, f)) {
// a is largest, do something special
} else {
// handle the base case
}
Warning
argument 0 may be evaluated multiple times

Definition at line 447 of file p99_for.h.

f
f
Definition: p99_str.h:138
P99_IS_MAX
#define P99_IS_MAX(FIRST,...)
Check if argument FIRST is strictly greater than the other elements in the list.
Definition: p99_for.h:447
d
d
Definition: p99_str.h:138