File indexing completed on 2025-01-18 09:52:35
0001 #ifndef BOOST_SYSTEM_DETAIL_SYSTEM_CATEGORY_MESSAGE_HPP_INCLUDED
0002 #define BOOST_SYSTEM_DETAIL_SYSTEM_CATEGORY_MESSAGE_HPP_INCLUDED
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013 #include <boost/system/api_config.hpp>
0014
0015 #if !defined(BOOST_POSIX_API) && !defined(BOOST_WINDOWS_API)
0016 # error BOOST_POSIX_API or BOOST_WINDOWS_API must be defined
0017 #endif
0018
0019 #if defined(BOOST_WINDOWS_API)
0020
0021 #include <boost/system/detail/system_category_message_win32.hpp>
0022
0023 namespace boost
0024 {
0025 namespace system
0026 {
0027 namespace detail
0028 {
0029
0030 inline std::string system_error_category_message( int ev )
0031 {
0032 return system_category_message_win32( ev );
0033 }
0034
0035 inline char const * system_error_category_message( int ev, char * buffer, std::size_t len ) BOOST_NOEXCEPT
0036 {
0037 return system_category_message_win32( ev, buffer, len );
0038 }
0039
0040 }
0041 }
0042 }
0043
0044 #else
0045
0046 #include <boost/system/detail/generic_category_message.hpp>
0047
0048 namespace boost
0049 {
0050 namespace system
0051 {
0052 namespace detail
0053 {
0054
0055 inline std::string system_error_category_message( int ev )
0056 {
0057 return generic_error_category_message( ev );
0058 }
0059
0060 inline char const * system_error_category_message( int ev, char * buffer, std::size_t len ) BOOST_NOEXCEPT
0061 {
0062 return generic_error_category_message( ev, buffer, len );
0063 }
0064
0065 }
0066 }
0067 }
0068
0069 #endif
0070
0071 #endif