diff options
| author | Oskari Timperi <oskari.timperi@iki.fi> | 2018-03-12 22:44:23 +0200 |
|---|---|---|
| committer | Oskari Timperi <oskari.timperi@iki.fi> | 2018-03-12 22:44:23 +0200 |
| commit | c14202d6e9f50987663933d8d30c80a265ee772d (patch) | |
| tree | 74269be7c40ee10e0b55a826c73317a4f193ee1c | |
| parent | d175c3c6e050df92d150019a5f783928ee1284d8 (diff) | |
| download | tommath-nim-master.tar.gz tommath-nim-master.zip | |
| -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 |
