Expand the documentation; Clean up debugging code; Enable all tests
This commit is contained in:
parent
cb36a6d4db
commit
18f9488bee
11 changed files with 205 additions and 120 deletions
|
|
@ -36,6 +36,13 @@ elif faststreams_async_backend in ["std", "asyncdispatch"]:
|
|||
else:
|
||||
{.fatal: "Unrecognized network backend: " & faststreams_async_backend.}
|
||||
|
||||
when defined(danger):
|
||||
template fsAssert*(x) = discard
|
||||
template fsAssert*(x, msg) = discard
|
||||
else:
|
||||
template fsAssert*(x) = doAssert(x)
|
||||
template fsAssert*(x, msg) = doAssert(x, msg)
|
||||
|
||||
template fsTranslateErrors*(errMsg: string, body: untyped) =
|
||||
try:
|
||||
body
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue