pragma_message_test.cpp 456 B

123456789101112131415161718
  1. // Copyright 2017 Peter Dimov.
  2. //
  3. // Distributed under the Boost Software License, Version 1.0.
  4. //
  5. // See accompanying file LICENSE_1_0.txt or copy at
  6. // http://www.boost.org/LICENSE_1_0.txt
  7. #include <boost/config/pragma_message.hpp>
  8. BOOST_PRAGMA_MESSAGE("first message")
  9. #define MSG2 "second message"
  10. BOOST_PRAGMA_MESSAGE(MSG2)
  11. #include <boost/config.hpp> // BOOST_STRINGIZE
  12. #define MSG3 third message
  13. BOOST_PRAGMA_MESSAGE(BOOST_STRINGIZE(MSG3))