preparations for Nimble NimScript integrations; minor cleanups

This commit is contained in:
Araq 2015-08-18 14:01:40 +02:00
commit 9659540b18
7 changed files with 74 additions and 6 deletions

View file

@ -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)