P99

◆ P99_ARE_EQ

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

Check if the arguments in the list are all equal.

Use this as follows:

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

Definition at line 401 of file p99_for.h.

P99_ARE_EQ
#define P99_ARE_EQ(FIRST,...)
Check if the arguments in the list are all equal.
Definition: p99_for.h:401
f
f
Definition: p99_str.h:138
d
d
Definition: p99_str.h:138