I have many different functions, and they all have simple printf
statements using __func__
similar to this one:
printf("%s - hello world!", __func__);
Now the problem I am running into is that in some functions it returns <unknown>
instead of the function name.
Why is that? Am I doing something wrong? AFAIK __func__
is a part of c99
so I don't understand why it isn't working as advertised.
I am using GCC 4.7.2 in Debian.