Re: Any predefined macro for current function?
Re: Any predefined macro for current function?
- Subject: Re: Any predefined macro for current function?
- From: "Chris Jefferson" <email@hidden>
- Date: Wed, 10 May 2006 22:05:04 +0100
You should can also try __PRETTY_FUNCTION__, which provides much nicer
names in C++.
On 5/10/06, Chris Ridd <email@hidden> wrote:
On 10/5/06 8:58, Tommy Nordgren <email@hidden> wrote:
> Are there any predefined macro in gcc 4.0 that expands to the name of
> the function
> currently compiled?
> If available, this would help in writing debug logging macros.
GCC defines __FUNCTION__, which is either the function you're in, or the
Objective-C method name.
Cheers,
Chris
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden