net/SocketError: use constexpr
This commit is contained in:
parent
fd0e958e95
commit
4a1c231734
@ -127,8 +127,7 @@ IsSocketErrorAcceptWouldBlock(socket_error_t code) noexcept
|
||||
#endif
|
||||
}
|
||||
|
||||
[[gnu::const]]
|
||||
static inline bool
|
||||
constexpr bool
|
||||
IsSocketErrorInterruped(socket_error_t code) noexcept
|
||||
{
|
||||
#ifdef _WIN32
|
||||
@ -138,8 +137,7 @@ IsSocketErrorInterruped(socket_error_t code) noexcept
|
||||
#endif
|
||||
}
|
||||
|
||||
[[gnu::const]]
|
||||
static inline bool
|
||||
constexpr bool
|
||||
IsSocketErrorClosed(socket_error_t code) noexcept
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
Loading…
Reference in New Issue
Block a user