#include <stdio.h>
#define LOG_TAG "coding_trace"
#define coding_trace(fmt, ...) \
printf("%s: %s[%d]: " fmt, LOG_TAG, __func__, __LINE__, ##__VA_ARGS__);
int main()
{
int a = 10;
/* Write C code in this online editor and run it. */
printf("Hello, World! \n");
coding_trace(" a is %d hello world \r\n",a);
return 0;
}
Hello, World!
coding_trace: main[13]: a is 10 hello world