diff options
author | flywind <xzsflywind@gmail.com> | 2022-03-24 03:34:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-23 20:34:53 +0100 |
commit | 7f6e800cafc7b73625893fb5280eb8b51a15b252 (patch) | |
tree | 90c7c75dd3056a2940182b3e6ca4c8c192bbb15b /lib/system/formatfloat.nim | |
parent | a8b5ad845c4218b4f20595df097c593acee53d50 (diff) | |
download | Nim-7f6e800cafc7b73625893fb5280eb8b51a15b252.tar.gz |
move assertions out of system (#19599)
Diffstat (limited to 'lib/system/formatfloat.nim')
-rw-r--r-- | lib/system/formatfloat.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/system/formatfloat.nim b/lib/system/formatfloat.nim index 3bcd3257b..aada3e1bf 100644 --- a/lib/system/formatfloat.nim +++ b/lib/system/formatfloat.nim @@ -7,6 +7,9 @@ # distribution, for details about the copyright. # +when defined(nimPreviewSlimSystem): + import std/assertions + proc c_memcpy(a, b: pointer, size: csize_t): pointer {.importc: "memcpy", header: "<string.h>", discardable.} proc addCstringN(result: var string, buf: cstring; buflen: int) = |