Is there a way to get the function name at runtime?


#1

Hi,

I was wondering if there is something like __func__ (in C/C++) in order to retrieve the function name at runtime. I’ve already found line! and file! macro, but nothing that returns the function name.

Thank you.


#2

RFC on the issue.


#3

Sorry for the question, but I didn’t understand if the issue has been included in the RFC list and in case which is its status.

Thank you.


#4

The RFC was not merged into active, and it is not being worked on. If you want to voice your support for such an RFC maybe comment on the issue, and ask mitsuhiko if he plans on creating a new RFC.