Macro to create struct according to existing variables' type and name

It definitely looks close to what I need. But how could I go about having extra variables that are used for the initialization of others (e.g. the whatever_variable in my previous example), without including them in the struct? Also, is there a way for me to abstract the keyword struct away from the macro, so that the user can just write @define begin...end? Sorry for the amount of questions, I am still a learner in the macros world :slight_smile:

1 Like