Nimscript knows about the command line defines
This commit is contained in:
parent
749abfc39c
commit
bcc91a319c
2 changed files with 4 additions and 4 deletions
|
|
@ -118,10 +118,10 @@ proc setupVM*(module: PSym; scriptName: string): PEvalContext =
|
|||
processSwitch(a.getString 0, a.getString 1, passPP, unknownLineInfo())
|
||||
|
||||
|
||||
proc runNimScript*(scriptName: string) =
|
||||
proc runNimScript*(scriptName: string; freshDefines=true) =
|
||||
passes.gIncludeFile = includeModule
|
||||
passes.gImportModule = importModule
|
||||
initDefines()
|
||||
if freshDefines: initDefines()
|
||||
|
||||
defineSymbol("nimscript")
|
||||
defineSymbol("nimconfig")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue