bugfix: make 'macros' module available for nimscript
This commit is contained in:
parent
c6471b8f72
commit
abec8823aa
2 changed files with 4 additions and 3 deletions
|
|
@ -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 nkIfStmt, nkIfExpr: genIf(c, n, dest)
|
||||
of nkWhenStmt:
|
||||
# This is "when nimvm" node. Chose the first branch.
|
||||
gen(c, n.sons[0].sons[1], dest)
|
||||
# This is "when nimvm" node. Chose the first branch.
|
||||
gen(c, n.sons[0].sons[1], dest)
|
||||
of nkCaseStmt: genCase(c, n, dest)
|
||||
of nkWhileStmt:
|
||||
unused(n, dest)
|
||||
|
|
@ -1810,7 +1810,7 @@ proc gen(c: PCtx; n: PNode; dest: var TDest; flags: TGenFlags = {}) =
|
|||
of nkVarSection, nkLetSection:
|
||||
unused(n, dest)
|
||||
genVarSection(c, n)
|
||||
of declarativeDefs:
|
||||
of declarativeDefs, nkMacroDef:
|
||||
unused(n, dest)
|
||||
of nkLambdaKinds:
|
||||
#let s = n.sons[namePos].sym
|
||||
|
|
|
|||
|
|
@ -21,5 +21,6 @@ import subexes
|
|||
import tables
|
||||
import unicode
|
||||
import uri
|
||||
import macros
|
||||
|
||||
echo "Nimscript imports are successful."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue