summary refs log tree commit diff stats
path: root/compiler/btrees.nim
diff options
context:
space:
mode:
authorflywind <xzsflywind@gmail.com>2022-03-24 03:34:53 +0800
committerGitHub <noreply@github.com>2022-03-23 20:34:53 +0100
commit7f6e800cafc7b73625893fb5280eb8b51a15b252 (patch)
tree90c7c75dd3056a2940182b3e6ca4c8c192bbb15b /compiler/btrees.nim
parenta8b5ad845c4218b4f20595df097c593acee53d50 (diff)
downloadNim-7f6e800cafc7b73625893fb5280eb8b51a15b252.tar.gz
move assertions out of system (#19599)
Diffstat (limited to 'compiler/btrees.nim')
-rw-r--r--compiler/btrees.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/btrees.nim b/compiler/btrees.nim
index d5e7e8099..1701f8d7b 100644
--- a/compiler/btrees.nim
+++ b/compiler/btrees.nim
@@ -10,6 +10,9 @@
 ## BTree implementation with few features, but good enough for the
 ## Nim compiler's needs.
 
+when defined(nimPreviewSlimSystem):
+  import std/assertions
+
 const
   M = 512    # max children per B-tree node = M-1
              # (must be even and greater than 2)