put extracted modules behind the switch, to enable doc generation

This commit is contained in:
narimiran 2019-03-14 11:14:04 +01:00
commit 71bff7d2df
6 changed files with 17 additions and 11 deletions

View file

@ -2926,6 +2926,7 @@ proc compiles*(x: untyped): bool {.magic: "Compiles", noSideEffect, compileTime.
discard discard
when not defined(nimSlimSystem):
import system/assertions import system/assertions
export assertions export assertions
@ -3332,7 +3333,7 @@ template unlikely*(val: bool): bool =
else: else:
unlikelyProc(val) unlikelyProc(val)
when not defined(nimSlimSystem):
import system/dollars import system/dollars
export dollars export dollars
@ -4345,10 +4346,10 @@ when defined(nimHasDefault):
proc default*(T: typedesc): T {.magic: "Default", noSideEffect.} proc default*(T: typedesc): T {.magic: "Default", noSideEffect.}
## returns the default value of the type ``T``. ## returns the default value of the type ``T``.
when not defined(nimSlimSystem):
import system/widestrs import system/widestrs
export widestrs export widestrs
when not defined(nimnoio):
import system/io import system/io
export io export io

View file

@ -0,0 +1,2 @@
--define:nimSlimSystem

View file

@ -0,0 +1 @@
--define:nimSlimSystem

View file

@ -1 +1 @@
--define: nimnoio --define:nimSlimSystem

View file

@ -0,0 +1 @@
--define:nimSlimSystem

View file

@ -0,0 +1 @@
--define:nimSlimSystem