Re: Anything like #pragma warn "my message" in GCC?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For GCC (at least, GCC 3.3.1):

#warning "This is a warning"

#error "This is an error"

I'm not 100% sure, but I think #warning is an extension. And #error is in the standard.

For an "info" you may want to use this convention:

#warning "INFO: this is informative"

HTH,
--Eljay


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux