This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Macro __FUNCTION__ in C++


>>>>> Ryszard Kabatek <rysio@rumcajs.chemie.uni-halle.de> writes:

 > The macro __FUNCTION__, or in C9X draft the identifier __func__, 
 > returns the name of the current function without
 > the namespace and without the argument types.

 > It's good for the C language, but in C++ would be useful something like:

 > '::A::B::calc(int, double) const' instead of 'calc'

Try __PRETTY_FUNCTION__.

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]