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]
Other format: [Raw text]

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.


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