I would like to detect if the macro call is done on a struct type. A naive approach didn't work:
#define IS_STRUCT(x) _Generic((x), struct *: 1, default: 0);
as _Generic
requires a complete type in the spec and struct *
isn't one…
Is there any other working trick that would make selecting on general structures possible?