allow macros to produce nnkGotoState and nkState

This commit is contained in:
Andreas Rumpf 2017-10-09 21:11:53 +02:00
commit d8746398c4
3 changed files with 9 additions and 2 deletions

View file

@ -92,7 +92,7 @@ proc mangleParamName(m: BModule; s: PSym): Rope =
proc mangleLocalName(p: BProc; s: PSym): Rope =
assert s.kind in skLocalVars+{skTemp}
assert sfGlobal notin s.flags
#assert sfGlobal notin s.flags
result = s.loc.r
if result == nil:
var key = s.name.s.mangle