pass typedesc as NimNode to macros (#11400)

* change typedesc's design in macros

* Manual and changelog entry.

* add link to RFC
This commit is contained in:
Arne Döring 2019-06-05 09:17:04 +02:00 • committed by Andreas Rumpf
commit cb45527e37
6 changed files with 54 additions and 39 deletions

View file

@ -2028,8 +2028,8 @@ proc setupMacroParam(x: PNode, typ: PType): TFullReg =
case typ.kind
of tyStatic:
putIntoReg(result, x)
of tyTypeDesc:
putIntoReg(result, x)
#of tyTypeDesc:
# putIntoReg(result, x)
else:
result.kind = rkNode
var n = x