summary refs log tree commit diff stats
path: root/compiler/scriptconfig.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2015-08-18 14:01:40 +0200
committerAraq <rumpf_a@web.de>2015-08-18 14:01:40 +0200
commit9659540b18b9bd76ea027c83a10077103fcc6318 (patch)
treeca63ea63432a64c589855eacc0a270dd1d1548a0 /compiler/scriptconfig.nim
parent10a7830ba2b5e26f8a37c160f7425a3130d67ae0 (diff)
downloadNim-9659540b18b9bd76ea027c83a10077103fcc6318.tar.gz
preparations for Nimble NimScript integrations; minor cleanups
Diffstat (limited to 'compiler/scriptconfig.nim')
-rw-r--r--compiler/scriptconfig.nim3
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)