net/SocketError: use constexpr
This commit is contained in:
parent
fd0e958e95
commit
4a1c231734
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user