What's Clang's equivalent to #pragma message
as used in GCC and MSVC?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
I've brought this up on the Clang mailing list, and it's in discussion now. It's subsequently been implemented as a warning, and hopefully soon it will be behave as it does in other compilers.
回答2:
#pragma message
has been implemented recently - too recently for the current release (2.7), but it should be included in the forthcoming 2.8.