P99

◆ P99_TYPED_TERN

#define P99_TYPED_TERN (   COND,
  YES,
  NO 
)

A compile time ternary operator that is analogous to COND ? YES : NO that keeps the type of the chosen expression.

When there is full _Generic support this is implemented using that feature. If not, the fallback from gcc for that purpose is used.

Definition at line 782 of file p99_generic.h.