bugfix: make 'macros' module available for nimscript

This commit is contained in:
Andreas Rumpf 2017-11-14 23:26:35 +01:00
commit abec8823aa
2 changed files with 4 additions and 3 deletions

View file

@ -1773,8 +1773,8 @@ proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
of nkAddr, nkHiddenAddr: genAddrDeref(c, n, dest, opcAddrNode, flags) of nkAddr, nkHiddenAddr: genAddrDeref(c, n, dest, opcAddrNode, flags)
of nkIfStmt, nkIfExpr: genIf(c, n, dest) of nkIfStmt, nkIfExpr: genIf(c, n, dest)
of nkWhenStmt: of nkWhenStmt:
# This is "when nimvm" node. Chose the first branch. # This is "when nimvm" node. Chose the first branch.
gen(c, n.sons[0].sons[1], dest) gen(c, n.sons[0].sons[1], dest)
of nkCaseStmt: genCase(c, n, dest) of nkCaseStmt: genCase(c, n, dest)
of nkWhileStmt: of nkWhileStmt:
unused(n, dest) unused(n, dest)
@ -1810,7 +1810,7 @@ proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
of nkVarSection, nkLetSection: of nkVarSection, nkLetSection:
unused(n, dest) unused(n, dest)
genVarSection(c, n) genVarSection(c, n)
of declarativeDefs: of declarativeDefs, nkMacroDef:
unused(n, dest) unused(n, dest)
of nkLambdaKinds: of nkLambdaKinds:
#let s = n.sons[namePos].sym #let s = n.sons[namePos].sym

View file

@ -21,5 +21,6 @@ import subexes
import tables import tables
import unicode import unicode
import uri import uri
import macros
echo "Nimscript imports are successful." echo "Nimscript imports are successful."