This commit is contained in:
ringabout
2025-12-17 22:32:47 +08:00
parent 6092051ec1
commit 0a6e35f41d
3 changed files with 5 additions and 7 deletions

View File

@@ -2130,6 +2130,10 @@ template unlikely*(val: bool): bool =
include std/private/digitsutils
export addInt
import std/formatfloat
when not defined(nimPreviewSlimSystem):
export addFloat
import system/dollars
export dollars
@@ -3032,8 +3036,7 @@ when defined(genode):
when not defined(nimPreviewSlimSystem):
import std/widestrs
export widestrs
include std/widestrs
when notJSnotNims:
when defined(windows) and compileOption("threads"):

View File

@@ -147,10 +147,6 @@ when defined(nimV2):
proc raiseObjectCaseTransition() {.compilerproc.} =
sysFatal(FieldDefect, "assignment to discriminant changes object branch")
import std/formatfloat
when not defined(nimPreviewSlimSystem):
export addFloat
func f2s(x: float | float32): string =
## Outplace version of `addFloat`.

View File

@@ -7,7 +7,6 @@ import std/private/miscdollars
when not defined(nimPreviewSlimSystem):
import std/formatfloat
export addFloat
func `$`*(x: float | float32): string =
## Outplace version of `addFloat`.