Print function name in C
printf("%s", __func__);
Print line number and file name in C/C++
#define print(a, args...) printf("%s(%s:%d) " a, __func__,__FILE__, __LINE__, ##args)
Print function name in C
printf("%s", __func__);
Print line number and file name in C/C++
#define print(a, args...) printf("%s(%s:%d) " a, __func__,__FILE__, __LINE__, ##args)