This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Looking for: __PROC_NAME__ equivalent to __FILE__ or __LINE__?
- From: Tom Emerson <tree at basistech dot com>
- To: "Brian T. Brunner" <brian dot t dot brunner at gai-tronics dot com>
- Cc: <gcc-help at gcc dot gnu dot org>
- Date: Fri, 25 Nov 2005 14:33:17 -0500
- Subject: Re: Looking for: __PROC_NAME__ equivalent to __FILE__ or __LINE__?
- References: <s386f377.083@CRPSPKWANW02-IA.hubbell.com>
- Reply-to: tree at basistech dot com
http://gcc.gnu.org/onlinedocs/gcc-4.0.2/gcc/Function-Names.html
__FUNCTION__ and __PRETTY_FUNCTION__ do what you want, I think.
--
Tom Emerson Basis Technology Corp.
Software Architect http://www.basistech.com
"You can't fake quality any more than you can fake a good meal." (W.S.B.)