I am trying to understand the X-macros topic in detail. But didn't get the full clarity on this. It would be better if any one of the expert will explain this topic with some example "how to use, how to call."
I have found several articles, but didn't get the full clarity on this. In all places, they have used pieces of code where i am lacking in using of those X-macros.
Thanks in advance Partha
You basically
#define
a list of variables as parameters to an place holder macroX
:You then use the template:
to make code blocks. For example to print all your vars:
will generate: