forked from boostorg/config
Suppress BOOST_PRAGMA_MESSAGE messages when BOOST_DISABLE_PRAGMA_MESSAGE is defined
This commit is contained in:
@@ -16,7 +16,9 @@
|
|||||||
|
|
||||||
#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)
|
||||||
|
#elif defined(__GNUC__)
|
||||||
# define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
|
# 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))
|
||||||
|
Reference in New Issue
Block a user