How to know the Macro context you are in

Viewed 94

For Example:

#define MY_TEST_FUNCTION
#ifdef MY_TEST_FUNCTION
void __MACRO_NAME##_TEST (void *)
{

}
#endif

This should produce:

#ifdef MY_TEST_FUNCTION
void MY_TEST_FUNCTION_TEST (void *)
{

}
#endif

This is something like func, where we get the function name inside a function. Is this possible?

3 Answers
Related