"for-loop macros" are no longer an experimental feature (#15288)
This commit is contained in:
parent
a81610230d
commit
c49b88163c
6 changed files with 50 additions and 51 deletions
|
|
@ -890,9 +890,8 @@ proc handleCaseStmtMacro(c: PContext; n: PNode; flags: TExprFlags): PNode =
|
|||
|
||||
proc semFor(c: PContext, n: PNode; flags: TExprFlags): PNode =
|
||||
checkMinSonsLen(n, 3, c.config)
|
||||
if forLoopMacros in c.features:
|
||||
result = handleForLoopMacro(c, n, flags)
|
||||
if result != nil: return result
|
||||
result = handleForLoopMacro(c, n, flags)
|
||||
if result != nil: return result
|
||||
openScope(c)
|
||||
result = n
|
||||
n[^2] = semExprNoDeref(c, n[^2], {efWantIterator})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue