如何向 c11 _Generic Functions 添加额外的类型?
你必须#undef/re-#define它吗?(如果是这样,下面的工作)还是有更好的方法?
#define to_str(X) _Generic((X), \
long double: ld_str, \
double: d_str, \
float: f_str, \
)(X)
#undef to_str
#define to_str(X) _Generic((X), \
long double: ld_str, \
double: d_str, \
float: f_str, \
int: i_str, \
)(X)