diff options
| author | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-31 09:20:28 -0600 |
|---|---|---|
| committer | Ganesh Viswanathan <dev@genotrance.com> | 2019-01-31 09:20:28 -0600 |
| commit | ada2ac0244b9ca8f9e365c31444cbf61cc372788 (patch) | |
| tree | 692df5c5b8f1a05be3ec27161444419e8d92bdf0 | |
| parent | abaac4d1bf6ce018a8244c1bb7a130bb8f93207d (diff) | |
| download | nimterop-ada2ac0244b9ca8f9e365c31444cbf61cc372788.tar.gz nimterop-ada2ac0244b9ca8f9e365c31444cbf61cc372788.zip | |
Fix #101 - include globals in cimport
| -rw-r--r-- | nimterop/cimport.nim | 4 | ||||
| -rw-r--r-- | nimterop/globals.nim | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/nimterop/cimport.nim b/nimterop/cimport.nim index 6a78b5e..1dd97aa 100644 --- a/nimterop/cimport.nim +++ b/nimterop/cimport.nim @@ -2,7 +2,9 @@ import hashes, macros, os, strformat, strutils const CIMPORT {.used.} = 1 -import "." / [globals, types, paths] +include "." / globals + +import "." / [types, paths] export types proc interpPath(dir: string): string= diff --git a/nimterop/globals.nim b/nimterop/globals.nim index bf9a0ef..b959958 100644 --- a/nimterop/globals.nim +++ b/nimterop/globals.nim @@ -68,7 +68,7 @@ type data*: seq[tuple[name, val: string]] var - gStateCT* {.compiletime, used.}: State + gStateCT {.compiletime, used.}: State gStateRT {.used.}: State template nBl(s: typed): untyped {.used.} = |
