#include <stdio.h> #include <stdlib.h> #define FUNCTION_NAME(__FUNCTION__) printf("__FUNCTION__=%s \r\n", #__FUNCTION__); #define FUNCTION_NAME(FUNCTION) printf("FUNCTION=%s \r\n", #FUNCTION);
int a() { printf("A function call"); } int b() { printf("B function call"); } int main(){ FUNCTION_NAME(a); FUNCTION_NAME(b); return 0; } Put double underscores in front and back of FUNCTION.}