Hi I need to determine the mangled name of a function from within an c++ app itself.
Is there any equivalent to the __FUNCDNAME__
macro in g++ ?
views:
130answers:
2
+1
A:
To get the demangled name use __PRETTY_FUNCTION__.
Better is to use:
#include <boost/current_function.hpp>
BOOST_CURRENT_FUNCTION
This gives the demangled name. I looked at cxxabi.h but there does not seem to be a mangle function. Do you really want the mangled name?
Eddy Pronk
2010-07-16 12:37:56
I think this one here (http://www.codesourcery.com/public/cxx-abi/abi.html) is more detailed, but it's involved.
FFox
2010-07-17 06:15:43