• 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 in GCC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #pragma message in GCC


  • Subject: Re: #pragma message in GCC
  • From: Chris Espinosa <email@hidden>
  • Date: Thu, 15 Sep 2005 13:34:21 -0700

On Sep 15, 2005, at 1:04 PM, Peter Lau wrote:

On 15-Sep-05, at 2:20 PM, Chris Espinosa wrote:



On Sep 15, 2005, at 9:13 AM, Peter Lau wrote:



in the other compiler I can write:


    #pragma message(blah.c need more work blah blah blah)


and it will generate that message during compilation of that source file.


I just tired with XCode 2.1 on Tiger and I think that pragma is simply ignored.


Is there a way to generate messages during compilation?



gcc offers only the #error and #warning directives:  http://gcc.gnu.org/onlinedocs/gcc-2.95.3/cpp_1.html#SEC38



I know about #error (as part of ANSI C) but not #warning.


To me, #warning is slightly stronger than #pragma message().


One is to warn you about something... one is just a message, a reminder.


Anyone knows if GCC will support this notion in the future?  May be '#message'?   How can I find out?


Or will GCC support "#pragma message()"?


Pragmas by their very nature are outside of the standard and compiler-specific.  The only compiler I can find that supports #pragma message is the DEC compiler.  

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

  • Follow-Ups:
    • Re: #pragma message in GCC
      • From: Peter Lau <email@hidden>
References: 
 >#pragma message in GCC (From: Peter Lau <email@hidden>)
 >Re: #pragma message in GCC (From: Chris Espinosa <email@hidden>)
 >Re: #pragma message in GCC (From: Peter Lau <email@hidden>)

  • Prev by Date: Re: #pragma message in GCC
  • Next by Date: Re: #pragma message in GCC
  • Previous by thread: Re: #pragma message in GCC
  • Next by thread: Re: #pragma message in GCC
  • Index(es):
    • Date
    • Thread