Back to home page

EIC code displayed by LXR

 
 

    


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 // Implementation of system_error_category_message
0005 //
0006 // Copyright 2018, 2022 Peter Dimov
0007 //
0008 // Distributed under the Boost Software License, Version 1.0. (See accompanying
0009 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
0010 //
0011 // See library home page at http://www.boost.org/libs/system
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 } // namespace detail
0041 } // namespace system
0042 } // namespace boost
0043 
0044 #else // #if defined(BOOST_WINDOWS_API)
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 } // namespace detail
0066 } // namespace system
0067 } // namespace boost
0068 
0069 #endif // #if defined(BOOST_WINDOWS_API)
0070 
0071 #endif // #ifndef BOOST_SYSTEM_DETAIL_SYSTEM_CATEGORY_MESSAGE_HPP_INCLUDED