fixes #325
This commit is contained in:
parent
d7023f2be4
commit
a4b2762249
6 changed files with 43 additions and 35 deletions
|
|
@ -1568,3 +1568,11 @@ proc makeStmtList*(n: PNode): PNode =
|
|||
else:
|
||||
result = newNodeI(nkStmtList, n.info)
|
||||
result.add n
|
||||
|
||||
proc createMagic*(name: string, m: TMagic): PSym =
|
||||
result = newSym(skProc, getIdent(name), nil, unknownLineInfo())
|
||||
result.magic = m
|
||||
|
||||
let
|
||||
opNot* = createMagic("not", mNot)
|
||||
opContains* = createMagic("contains", mInSet)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue