P99

◆ P99_TO_UNSIGNED

#define P99_TO_UNSIGNED (   T,
  MACRO 
)
Value:
(sizeof(T) < sizeof(signed) \
? (sizeof(T) == 1u \
? MACRO(unsigned char) \
: MACRO(unsigned short)) \
: (sizeof(T) < sizeof(unsigned long) \
? MACRO(unsigned) \
: (sizeof(T) < sizeof(unsigned long long) \
? MACRO(unsigned long) \
: MACRO(unsigned long long)))))

Apply the type macro MACRO to an unsigned type that is compatible with type T.

The returned expression is of type uintmax_t

Remarks
argument 0 should correspond to a type that is not a VLA.
argument 1 should correspond to a macro name

Definition at line 218 of file p99_int.h.

uintmax_t
uintmax_t
Definition: p99_str.h:117
long
long long
Definition: p99_str.h:69