Re: Compiler constants
Re: Compiler constants
- Subject: Re: Compiler constants
- From: Chris Espinosa <email@hidden>
- Date: Tue, 25 Mar 2008 17:37:49 -0700
On Mar 25, 2008, at 5:03 PM, Charlie Dickman <email@hidden>
wrote:
In some C environments there are compiler constants such as __line__
and __name__ (those are double underbars and are reserved for
compiler constants) that compile to the current line number and the
current function name respectively. Are there anything similar in
Objective C. I have not been able to find any such thing in any
documentation I have access to. There are also supposed to be
(according to the standard) installation defined #PRAGMA directives.
I not been able to find any of these either.
Look for "Standard Predefined Macros" in the gcc documentation that
comes with Xcode. You want __FILE__ and __LINE__ (note capitalization.)
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