Pragma message in Clang?

守給你的承諾、 提交于 2019-12-22 10:58:24

问题


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.



来源:https://stackoverflow.com/questions/3796894/pragma-message-in-clang

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!