put extracted modules behind the switch, to enable doc generation
This commit is contained in:
parent
4181baf400
commit
71bff7d2df
6 changed files with 17 additions and 11 deletions
|
|
@ -2926,11 +2926,12 @@ proc compiles*(x: untyped): bool {.magic: "Compiles", noSideEffect, compileTime.
|
|||
discard
|
||||
|
||||
|
||||
import system/assertions
|
||||
export assertions
|
||||
when not defined(nimSlimSystem):
|
||||
import system/assertions
|
||||
export assertions
|
||||
|
||||
import system/iterators
|
||||
export iterators
|
||||
import system/iterators
|
||||
export iterators
|
||||
|
||||
|
||||
proc find*[T, S](a: T, item: S): int {.inline.}=
|
||||
|
|
@ -3332,9 +3333,9 @@ template unlikely*(val: bool): bool =
|
|||
else:
|
||||
unlikelyProc(val)
|
||||
|
||||
|
||||
import system/dollars
|
||||
export dollars
|
||||
when not defined(nimSlimSystem):
|
||||
import system/dollars
|
||||
export dollars
|
||||
|
||||
|
||||
const
|
||||
|
|
@ -4345,10 +4346,10 @@ when defined(nimHasDefault):
|
|||
proc default*(T: typedesc): T {.magic: "Default", noSideEffect.}
|
||||
## returns the default value of the type ``T``.
|
||||
|
||||
import system/widestrs
|
||||
export widestrs
|
||||
when not defined(nimSlimSystem):
|
||||
import system/widestrs
|
||||
export widestrs
|
||||
|
||||
when not defined(nimnoio):
|
||||
import system/io
|
||||
export io
|
||||
|
||||
|
|
|
|||
2
lib/system/assertions.nim.cfg
Normal file
2
lib/system/assertions.nim.cfg
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
--define:nimSlimSystem
|
||||
|
||||
1
lib/system/dollars.nim.cfg
Normal file
1
lib/system/dollars.nim.cfg
Normal file
|
|
@ -0,0 +1 @@
|
|||
--define:nimSlimSystem
|
||||
|
|
@ -1 +1 @@
|
|||
--define: nimnoio
|
||||
--define:nimSlimSystem
|
||||
|
|
|
|||
1
lib/system/iterators.nim.cfg
Normal file
1
lib/system/iterators.nim.cfg
Normal file
|
|
@ -0,0 +1 @@
|
|||
--define:nimSlimSystem
|
||||
1
lib/system/widestrs.nim.cfg
Normal file
1
lib/system/widestrs.nim.cfg
Normal file
|
|
@ -0,0 +1 @@
|
|||
--define:nimSlimSystem
|
||||
Loading…
Add table
Add a link
Reference in a new issue