c11 _Generic 関数に追加の型を追加するにはどうすればよいですか?
それを #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)