• 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
How can I find out what predefined symbols the compiler is using?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I find out what predefined symbols the compiler is using?


  • Subject: How can I find out what predefined symbols the compiler is using?
  • From: Paul Archibald <email@hidden>
  • Date: Thu, 31 Aug 2006 11:36:25 -0700

I am trying to use a header file that contains some stuff like this:

#ifdef __MWERKS__
...
#endif


#ifdef __GNUC__ ... #endif

The purpose of this is to enable certain #defines in my code. (Is there any other reason to do this??)

What I would like to know is how do you determine what the choices are for these types of #defines? The compiler obviously knows about __GNUC__, and maybe __MWERKS__, but is there a way for me to query the compiler about which ones of these it has defined? (And, what is the proper terminology for these symbols? I would happily google for this info if I knew what to call it.)

Paul
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: .subsections_via_symbols broken in Xcode 2.4?
  • Next by Date: Re: How can I find out what predefined symbols the compiler is using?
  • Previous by thread: Re: .subsections_via_symbols broken in Xcode 2.4?
  • Next by thread: Re: How can I find out what predefined symbols the compiler is using?
  • Index(es):
    • Date
    • Thread