some support for passing blocks to overloaded templates/macros

This commit is contained in:
Araq 2012-09-17 20:30:15 +02:00
commit 391fb89a3e
3 changed files with 29 additions and 7 deletions

View file

@ -22,7 +22,8 @@ proc semPass*(): TPass
type
TExprFlag = enum
efLValue, efWantIterator, efInTypeof, efWantStmt
efLValue, efWantIterator, efInTypeof, efWantStmt,
efMacroStmt # expr to semcheck is a macro statement
TExprFlags = set[TExprFlag]
proc semExpr(c: PContext, n: PNode, flags: TExprFlags = {}): PNode