Re: #pragma message(...)
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