implements {.gcsafe.} enforcement as a pragma block
This commit is contained in:
parent
b6b5a11be7
commit
2f08fdf623
3 changed files with 27 additions and 16 deletions
|
|
@ -1444,7 +1444,7 @@ proc semPragmaBlock(c: PContext, n: PNode): PNode =
|
|||
for i in 0 .. <pragmaList.len:
|
||||
case whichPragma(pragmaList.sons[i])
|
||||
of wLine: setLine(result, pragmaList.sons[i].info)
|
||||
of wLocks:
|
||||
of wLocks, wGcSafe:
|
||||
result = n
|
||||
result.typ = n.sons[1].typ
|
||||
of wNoRewrite:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue