This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Identifying VAR_DECL node for __FUNCTION__ etc.
- From: Mike Stump <mrs at apple dot com>
- To: Revital Eres <ERES at il dot ibm dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 9 Aug 2004 09:26:21 -0700
- Subject: Re: Identifying VAR_DECL node for __FUNCTION__ etc.
On Monday, August 9, 2004, at 06:08 AM, Revital Eres wrote:
How do I identify a VAR_DECL node for __FUNCTION__ etc?
Type in:
void foo() {
__FUNCTION__
}
and then watch what the compiler does to find it... :-) In short,
lookup ("__FUNCTION__") will find it.