forked from boostorg/config
Suppress BOOST_PRAGMA_MESSAGE messages when BOOST_DISABLE_PRAGMA_MESSAGE is defined
This commit is contained in:
@ -16,12 +16,14 @@
|
|||||||
|
|
||||||
#include <boost/config/helper_macros.hpp>
|
#include <boost/config/helper_macros.hpp>
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if defined(BOOST_DISABLE_PRAGMA_MESSAGE)
|
||||||
#define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
|
# define BOOST_PRAGMA_MESSAGE(x)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
|
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
|
||||||
#elif defined(_MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define BOOST_PRAGMA_MESSAGE(x) __pragma(message(__FILE__ "(" BOOST_STRINGIZE(__LINE__) "): note: " x))
|
# define BOOST_PRAGMA_MESSAGE(x) __pragma(message(__FILE__ "(" BOOST_STRINGIZE(__LINE__) "): note: " x))
|
||||||
#else
|
#else
|
||||||
#define BOOST_PRAGMA_MESSAGE(x)
|
# define BOOST_PRAGMA_MESSAGE(x)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif // BOOST_CONFIG_PRAGMA_MESSAGE_HPP_INCLUDED
|
#endif // BOOST_CONFIG_PRAGMA_MESSAGE_HPP_INCLUDED
|
||||||
|
Reference in New Issue
Block a user