Hi, does there happen to be a way to concatenate random or unique constants (such as __FILE__ and __LINE__) to form the name of a struct? So you're guaranteed unique struct's and no redefinition errors?
I just want to know if it's possible. Thanks :)Code:#define CREATE_STRUCT() struct s##__LINE__ {}
int main()
{
CREATE_STRUCT() s1;
CREATE_STRUCT() s2; //redefinition error
}