move assertions out of system (#19599)

This commit is contained in:
flywind
2022-03-24 03:34:53 +08:00
committed by GitHub
parent a8b5ad845c
commit 7f6e800caf
110 changed files with 361 additions and 10 deletions

View File

@@ -10,6 +10,10 @@
import macros
from typetraits import OrdinalEnum, HoleyEnum
when defined(nimPreviewSlimSystem):
import std/assertions
# xxx `genEnumCaseStmt` needs tests and runnableExamples
macro genEnumCaseStmt*(typ: typedesc, argSym: typed, default: typed,