diff options
author | Araq <rumpf_a@web.de> | 2015-08-18 14:01:40 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-08-18 14:01:40 +0200 |
commit | 9659540b18b9bd76ea027c83a10077103fcc6318 (patch) | |
tree | ca63ea63432a64c589855eacc0a270dd1d1548a0 /compiler/scriptconfig.nim | |
parent | 10a7830ba2b5e26f8a37c160f7425a3130d67ae0 (diff) | |
download | Nim-9659540b18b9bd76ea027c83a10077103fcc6318.tar.gz |
preparations for Nimble NimScript integrations; minor cleanups
Diffstat (limited to 'compiler/scriptconfig.nim')
-rw-r--r-- | compiler/scriptconfig.nim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim index 1e4fc25af..148a382c2 100644 --- a/compiler/scriptconfig.nim +++ b/compiler/scriptconfig.nim @@ -25,7 +25,8 @@ proc listDirs(a: VmArgs, filter: set[PathComponent]) = if kind in filter: result.add path setResult(a, result) -proc setupVM(module: PSym; scriptName: string): PEvalContext = +proc setupVM*(module: PSym; scriptName: string): PEvalContext = + # For Nimble we need to export 'setupVM'. result = newCtx(module) result.mode = emRepl registerAdditionalOps(result) |