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 thread is currently running ?
C++11 standardized __func__
for the current function.
Various compilers support variations of __FUNCTION__
, __PRETTY_FUNCTION__
, and others.
If you're doing GNU compatible stuffs, you may want to try backtrace.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With