net/SocketError: use constexpr

This commit is contained in:
Max Kellermann 2021-04-06 13:59:56 +02:00
parent fd0e958e95
commit 4a1c231734

View File

@ -127,8 +127,7 @@ IsSocketErrorAcceptWouldBlock(socket_error_t code) noexcept
#endif #endif
} }
[[gnu::const]] constexpr bool
static inline bool
IsSocketErrorInterruped(socket_error_t code) noexcept IsSocketErrorInterruped(socket_error_t code) noexcept
{ {
#ifdef _WIN32 #ifdef _WIN32
@ -138,8 +137,7 @@ IsSocketErrorInterruped(socket_error_t code) noexcept
#endif #endif
} }
[[gnu::const]] constexpr bool
static inline bool
IsSocketErrorClosed(socket_error_t code) noexcept IsSocketErrorClosed(socket_error_t code) noexcept
{ {
#ifdef _WIN32 #ifdef _WIN32