Lets say I have some #defines
#define _TEST_FOO() // some code here
#define _TEST_BAR() // some code here
#define ABC FOO
#define BCD BAR
Can I create another #define like so:
#define CONCATENATE(x) //??something here??
Where if somewhere in code I would useCONCATENATE(ABC);
or CONCATENATE(BCD);
it would generate _TEST_FOO();
and _TEST_BAR();
respectively.
Thanks
EDIT:
Sorry for the mistake, I meant:
#define _TEST_FOO_CLK_ENABLE()
#define _TEST_BAR_CLK_ENABLE()
So the result when calling CONCATENATE(x);
should be:
_TEST_FOO_CLK_ENABLE();
_TEST_BAR_CLK_ENABLE();