fixes #13519
This commit is contained in:
parent
b0684ec425
commit
861a5340fe
7 changed files with 37 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue