• 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: #pragma message(). Was 'AliasRecord'...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #pragma message(). Was 'AliasRecord'...


  • Subject: Re: #pragma message(). Was 'AliasRecord'...
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 19 Jan 2006 11:47:22 -0800

On Jan 19, 2006, at 11:33 AM, Jerry Krinock wrote:

on 06/01/19 07:30, Fritz Anderson at email@hidden wrote:


On 19 Jan 2006, at 7:56 AM, Jerry Krinock wrote:


I put in some #pragma message to try and see what was going on with

your

compiler directives and macros, but I didn't get any messages.  Does

Xcode/gcc support anything like "#pragma message"?


#warning and #error


Fritz, I can't find this anywhere in Xcode or gcc documentation.  To the

contrary, in GCC manual sec. 5.49,


"GCC supports several types of pragmas, primarily in order to compile code

originally written for other compilers. Note that in general we do not

recommend the use of pragmas... [use function attributes instead]."


I was asking if there is any way to do stuff like this:


#pragma message( "Hello, I'm compiling this section of code now so

apparently that ifdef Eric suggested must have switched." )


file:///Developer/ADC Reference Library/documentation/DeveloperTools/gcc-4.0.1/cpp/Diagnostics.html

I found this by opening Help > Documentation in Xcode, selecting the "Tools > Compilers and Debuggers" group, and entering "message" into the search field.  It was the first hit.

#pragma directives are generally outside the C standard and are compiler-specific in most cases.

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: 
 >#pragma message(). Was 'AliasRecord'... (From: Jerry Krinock <email@hidden>)

  • Prev by Date: #pragma message(). Was 'AliasRecord'...
  • Next by Date: Re: Processing doesn't stop at break points
  • Previous by thread: #pragma message(). Was 'AliasRecord'...
  • Next by thread: Re: #pragma message(). Was 'AliasRecord'...
  • Index(es):
    • Date
    • Thread