Fixed stacktrace/linetrace proc pragmas when appended by macro pragma
This commit is contained in:
parent
2d186f18ec
commit
466af35d4d
2 changed files with 74 additions and 60 deletions
|
|
@ -1486,10 +1486,11 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
|
|||
s.ast = n
|
||||
#s.scope = c.currentScope
|
||||
|
||||
s.options = c.config.options
|
||||
|
||||
# before compiling the proc body, set as current the scope
|
||||
# where the proc was declared
|
||||
let oldScope = c.currentScope
|
||||
let oldOptions = c.config.options
|
||||
#c.currentScope = s.scope
|
||||
pushOwner(c, s)
|
||||
openScope(c)
|
||||
|
|
@ -1569,8 +1570,6 @@ proc semProcAux(c: PContext, n: PNode, kind: TSymKind,
|
|||
proto.ast = n # needed for code generation
|
||||
popOwner(c)
|
||||
pushOwner(c, s)
|
||||
s.options = c.config.options
|
||||
c.config.options = oldOptions
|
||||
|
||||
if sfOverriden in s.flags or s.name.s[0] == '=': semOverride(c, s, n)
|
||||
if s.name.s[0] in {'.', '('}:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue