#include<stdio.h>
#include<stdarg.h>
#include<stdlib.h>
#include<unistd.h>
#include<iostream>
#define LOG(...){\
fprintf(stderr, "%s:Line %d:\t", __FILE__, __LINE__);\
fprintf(stderr, __VA_ARGS____);\
fprintf(stderr, "\n");}
int main()
{
int x = 10;
int y = 100;
LOG("x = %d, y = %d", x, y);
return 0;
}
g++ -std= c++11 main.cpp -o test