From 54bd728c1358ebae33d08173d139824e77947a5f Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 20 Jan 2017 12:50:30 +0100 Subject: [PATCH] some progress on #5228 --- compiler/scriptconfig.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/scriptconfig.nim b/compiler/scriptconfig.nim index 1105d3b671..75ecf4b024 100644 --- a/compiler/scriptconfig.nim +++ b/compiler/scriptconfig.nim @@ -116,12 +116,12 @@ proc setupVM*(module: PSym; cache: IdentCache; scriptName: string): PEvalContext cbconf getCommand: setResult(a, options.command) cbconf switch: - processSwitch(a.getString 0, a.getString 1, passPP, unknownLineInfo()) + processSwitch(a.getString 0, a.getString 1, passPP, module.info) cbconf hintImpl: - processSpecificNote(a.getString 0, wHint, passPP, unknownLineInfo(), + processSpecificNote(a.getString 0, wHint, passPP, module.info, a.getString 1) cbconf warningImpl: - processSpecificNote(a.getString 0, wWarning, passPP, unknownLineInfo(), + processSpecificNote(a.getString 0, wWarning, passPP, module.info, a.getString 1) cbconf patchFile: let key = a.getString(0) & "_" & a.getString(1)