diff options
| -rw-r--r-- | src/tommath/private/config.nim | 20 | ||||
| -rw-r--r-- | src/tommath/tommath.nim | 2 |
2 files changed, 11 insertions, 11 deletions
diff --git a/src/tommath/private/config.nim b/src/tommath/private/config.nim index 496ea34..21c0678 100644 --- a/src/tommath/private/config.nim +++ b/src/tommath/private/config.nim @@ -5,22 +5,22 @@ template currentSourceDir(): string = parentDir(currentSourcePath()) when not defined(tommathPrefix): - const tommathPrefix = currentSourceDir() + const tommathPrefix* = currentSourceDir() -when not defined(tommathIncPath): - const tommathIncPath = tommathPrefix / "include" +when not defined(tommathIncDir): + const tommathIncDir* = tommathPrefix / "include" when defined(vcc): - {.passC:"/I" & tommathIncPath.} + {.passC:"/I" & tommathIncDir.} else: - {.passC:"-I" & tommathIncPath.} + {.passC:"-I" & tommathIncDir.} -when not defined(tommathLibPath): - const tommathLibPath = tommathPrefix / "lib" +when not defined(tommathLibDir): + const tommathLibDir* = tommathPrefix / "lib" when defined(vcc): - const libraryPath = tommathLibPath / "tommath.lib" + const tommathLibPath* = tommathLibDir / "tommath.lib" else: - const libraryPath = tommathLibPath / "libtommath.a" + const tommathLibPath* = tommathLibDir / "libtommath.a" -{.passL:libraryPath.} +{.passL:tommathLibPath.} diff --git a/src/tommath/tommath.nim b/src/tommath/tommath.nim index f45763c..f0a351e 100644 --- a/src/tommath/tommath.nim +++ b/src/tommath/tommath.nim @@ -1,4 +1,4 @@ -include private/config +import private/config type mp_digit* = distinct uint32 |
