__func__ or __FUNCTION__ or manual const char* id?

Viewed 15471

I'm wondering how widely are __func__ (part of C99, but I'm compiling as C89) and __FUNCTION__ supported.

I have an old code base that is mostly using manual const char* id; variables that are then passed to various (mostly logging) functions. I would like to get rid of this and move the function name into a macro.

3 Answers
Related