Skip navigation.
 
ml#pragma message(). Was 'AliasRecord'...
FROM : Jerry Krinock
DATE : Thu Jan 19 20:33:16 2006

on 06/01/19 07:30, Fritz Anderson at <email_removed> 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." )