diff options
Diffstat (limited to 'lib/pure/net.nim')
-rw-r--r-- | lib/pure/net.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/pure/net.nim b/lib/pure/net.nim index 1cb141669..8ae40a799 100644 --- a/lib/pure/net.nim +++ b/lib/pure/net.nim @@ -148,6 +148,9 @@ type Peek, SafeDisconn ## Ensures disconnection exceptions (ECONNRESET, EPIPE etc) are not thrown. +when defined(nimHasStyleChecks): + {.push styleChecks: off.} + type IpAddressFamily* {.pure.} = enum ## Describes the type of an IP address IPv6, ## IPv6 address @@ -161,6 +164,8 @@ type of IpAddressFamily.IPv4: address_v4*: array[0..3, uint8] ## Contains the IP address in bytes in ## case of IPv4 +when defined(nimHasStyleChecks): + {.pop.} proc socketError*(socket: Socket, err: int = -1, async = false, lastError = (-1).OSErrorCode): void {.gcsafe.} |