P99

◆ P99_IS_MIN

#define P99_IS_MIN (   FIRST,
  ... 
)    P99_FOR(>= (FIRST), P99_NARG(__VA_ARGS__), P00_AND, P00_ISIT, __VA_ARGS__)

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

Use this as follows:

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

Definition at line 416 of file p99_for.h.

f
f
Definition: p99_str.h:138
P99_IS_MIN
#define P99_IS_MIN(FIRST,...)
Check if argument FIRST is less than the other elements in the list.
Definition: p99_for.h:416
d
d
Definition: p99_str.h:138