Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: #pragma message(...)



 
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:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden

References: 
 >#pragma message(...) (From: Dieter Oberkofler <email@hidden>)
 >Re: #pragma message(...) (From: Svein E Kvernoey <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.