This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Macro __FUNCTION__ in C++
- To: rysio at rumcajs dot chemie dot uni-halle dot de (Ryszard Kabatek), egcs at cygnus dot com
- Subject: Re: Macro __FUNCTION__ in C++
- From: Jason Merrill <jason at cygnus dot com>
- Date: 13 Sep 1998 04:00:01 -0700
- References: <Pine.LNX.3.96.980913104007.664A-100000.cygnus.egcs@rumcajs.chemie.uni-halle.de>
>>>>> 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