struct potato
{
struct potato* pPotato;
struct tomato* pTomato;
};
Plain C typedef .
typedefing ( posfix, , typedef ), :
#define Struct(Nam,...) typedef struct Nam Nam; struct Nam __VA_ARGS__
Struct(tomato,);
Struct(potato,);
Struct( potato, {
potato* pPotato;
tomato* pTomato;
});
Struct(tomato, {
potato* pPotato;
tomato* pTomato;
});
tomato tom;
potato pot;