This commit is contained in:
Araq
2020-03-10 10:39:43 +01:00
committed by Andreas Rumpf
parent b0684ec425
commit 861a5340fe
7 changed files with 37 additions and 7 deletions

View File

@@ -26,7 +26,7 @@ proc failedAssertImpl*(msg: string) {.raises: [], tags: [].} =
# by ``assert``.
type Hide = proc (msg: string) {.noinline, raises: [], noSideEffect,
tags: [].}
Hide(raiseAssert)(msg)
cast[Hide](raiseAssert)(msg)
template assertImpl(cond: bool, msg: string, expr: string, enabled: static[bool]) =
when enabled: