Type Enum
include/types/type_enum.h View source View on GitHubtype_enum
Section titled “type_enum” enum type_enum (15 variants) source
Functions
Section titled “Functions”type_enum_width
Section titled “type_enum_width”type_enum_str
Section titled “type_enum_str”Macros
Section titled “Macros”TYPE_TO_ENUM
Section titled “TYPE_TO_ENUM”#define TYPE_TO_ENUM(X) source Expansion
#define TYPE_TO_ENUM(X) \
cc_generic((X), int8_t : TYPE_INT8, uint8_t : TYPE_UINT8, \
int16_t : TYPE_INT16, uint16_t : TYPE_UINT16, \
int32_t : TYPE_INT32, uint32_t : TYPE_UINT32, \
int64_t : TYPE_INT64, uint64_t : TYPE_UINT64, \
float : TYPE_FLOAT32, double : TYPE_FLOAT64, bool : TYPE_BOOL, \
default : cc_generic((void *) (X), void * : TYPE_POINTER, \
const void * : TYPE_POINTER, \
volatile void * : TYPE_POINTER, \
const volatile void * : TYPE_POINTER, \
default : TYPE_UNKNOWN))