Detect [[noreturn]] attribute

This commit is contained in:
Antony Polukhin
2016-09-03 12:37:06 +03:00
parent 226bee3010
commit 830192fc35

View File

@ -624,6 +624,10 @@ namespace std{ using ::type_info; }
# define BOOST_NORETURN __declspec(noreturn) # define BOOST_NORETURN __declspec(noreturn)
# elif defined(__GNUC__) # elif defined(__GNUC__)
# define BOOST_NORETURN __attribute__ ((__noreturn__)) # define BOOST_NORETURN __attribute__ ((__noreturn__))
# elif defined(__has_cpp_attribute)
# if __has_cpp_attribute(noreturn)
# define BOOST_NORETURN [[noreturn]]
# endif
# else # else
# define BOOST_NO_NORETURN # define BOOST_NO_NORETURN
# define BOOST_NORETURN # define BOOST_NORETURN