Emitting warnings on GCC
Is there a way that I could pass a string message 开发者_Python百科as a warnign in GCC (but not as an ordinary message)?
(googled:)
#error works and needs to, because the standard mandates it. gcc also has #warning.
You could use warning about usunused variable for this - http://www.ideone.com/GyAMq
if(1 < 0) {
char warning__1_Should_not_be_less_than_0;
}
加载中,请稍侯......
精彩评论