I am trying to concatinate __ func__ and literal string in C++ and I am getting an error on GCC (with or without of C++11 standart). Like, for example, here:
#include <cstdio>
int main(void)
{
printf("%s", __func__ " try #1\n");
printf(__func__ " try #2\n");
return 0;
}
Looks like __ func__ is not actually a string literal macros. Does anyone knows why that is happening and, maybe, way to solve it?