use doAssert for release asserts

This commit is contained in:
Dmitriy Ryajov 2019-10-03 13:29:58 -06:00
parent f190c155d3
commit e98ec9fd49
1 changed files with 9 additions and 9 deletions

View File

@ -49,38 +49,38 @@ proc newLPStreamClosedError*(): ref Exception {.inline.} =
method read*(s: LPStream, n = -1): Future[seq[byte]] method read*(s: LPStream, n = -1): Future[seq[byte]]
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method readExactly*(s: LPStream, pbytes: pointer, nbytes: int): Future[void] method readExactly*(s: LPStream, pbytes: pointer, nbytes: int): Future[void]
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method readLine*(s: LPStream, limit = 0, sep = "\r\n"): Future[string] method readLine*(s: LPStream, limit = 0, sep = "\r\n"): Future[string]
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method readOnce*(s: LPStream, pbytes: pointer, nbytes: int): Future[int] method readOnce*(s: LPStream, pbytes: pointer, nbytes: int): Future[int]
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method readUntil*(s: LPStream, method readUntil*(s: LPStream,
pbytes: pointer, nbytes: int, pbytes: pointer, nbytes: int,
sep: seq[byte]): Future[int] sep: seq[byte]): Future[int]
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method write*(s: LPStream, pbytes: pointer, nbytes: int) method write*(s: LPStream, pbytes: pointer, nbytes: int)
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method write*(s: LPStream, msg: string, msglen = -1) method write*(s: LPStream, msg: string, msglen = -1)
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method write*(s: LPStream, msg: seq[byte], msglen = -1) method write*(s: LPStream, msg: seq[byte], msglen = -1)
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")
method close*(s: LPStream) method close*(s: LPStream)
{.base, async, gcsafe.} = {.base, async, gcsafe.} =
assert(false, "not implemented!") doAssert(false, "not implemented!")