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


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.

RFC on the issue.

1 Like

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.

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.