Re: #pragma message(). Was 'AliasRecord'...
Re: #pragma message(). Was 'AliasRecord'...
- Subject: Re: #pragma message(). Was 'AliasRecord'...
- From: Fritz Anderson <email@hidden>
- Date: Thu, 19 Jan 2006 14:12:48 -0600
On 19 Jan 2006, at 1:33 PM, 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." )
Gnu C 4.0 Preprocessor User Guide, section 5, Diagnostics (the
seventh entry when you do a full-text search for '#warning') :
The directive #error causes the preprocessor to report a fatal
error. The tokens forming the rest of the line following #error are
used as the error message.
...
The directive #warning is like #error, but causes the preprocessor
to issue a warning and continue preprocessing. The tokens following
#warning are used as the warning message.
There is no #pragma message() in GCC. Place a #warning directive,
with whatever text you like, where you'd use #pragma message().
-- F
_______________________________________________
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