• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Compiler constants
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Compiler constants (From: Charlie Dickman <email@hidden>)

  • Prev by Date: Compiler constants
  • Next by Date: Re: Xcode 3.0 help issues
  • Previous by thread: Compiler constants
  • Next by thread: Re: Compiler constants
  • Index(es):
    • Date
    • Thread