I don’t know much about RTTI, but I believe that thanks to that you can retrieve the name of variables at run-time. Is it possible to retrieve the name of the function the
C++11 standardized __func__ for the current function.
__func__
Various compilers support variations of __FUNCTION__, __PRETTY_FUNCTION__, and others.
__FUNCTION__
__PRETTY_FUNCTION__