• 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(...)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #pragma message(...)


  • Subject: Re: #pragma message(...)
  • From: Ricky Sharp <email@hidden>
  • Date: Thu, 27 Apr 2006 12:01:16 -0500

On Thursday, April 27, 2006, at 07:23AM, Svein E Kvernoey <email@hidden> wrote:

>> Is there a way in GCC to output a message at compile type except the
>> #error precompiler statement?
>> I'm looking for something similar to the "#pragma message()"
>> functionality available on MSVC.
>
>#warning

But that will generate a warning.  #pragma message (also from Codewarrior) would generate an informational-only message that was not classified as either an error or a warning.  I used to use those messages as "ToDo" reminders.  Everytime I compiled cleanly, I got a list of them.

What I now do instead is to use stuff like this in my code:

#pragma mark ToDo Do this and that

I then have to search for #pragma mark ToDo to get the list.  But, whenever I bring up the function popup, I can also see any ToDo's at a glance.

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
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(...) (From: Dieter Oberkofler <email@hidden>)
 >Re: #pragma message(...) (From: Svein E Kvernoey <email@hidden>)

  • Prev by Date: technicalqas folder after documentation update
  • Next by Date: Executables stored in .pbxuser?
  • Previous by thread: Re: #pragma message(...)
  • Next by thread: Re: Quotes not persisting in Project Settings
  • Index(es):
    • Date
    • Thread