C ++ get garbled function / method names

Hey. I need to define a malformed function name from a C ++ application itself. Is there an equivalent to __FUNCDNAME__ macro in g ++?

+5
c ++ g ++ name-mangling
Jul 16 '10 at 6:57
source share
1 answer

To get the changed name, use __PRETTY_FUNCTION__.

Better to use:

 #include <boost/current_function.hpp> BOOST_CURRENT_FUNCTION 

This gives the demarcated name. I looked at cxxabi.h, but there seems to be no mangle function. Do you really want a warped name?

+1
Jul 16 '10 at 12:37
source share



All Articles