Trim remaining expr/stmt from stdlib (#6742)

This commit is contained in:
Lynn C. Rees 2017-11-15 09:34:48 -07:00 • committed by Andreas Rumpf
commit 0ab373115c
9 changed files with 16 additions and 16 deletions

View file

@ -173,7 +173,7 @@ proc internRefcount(p: pointer): int {.exportc: "getRefcount".} =
when BitsPerPage mod (sizeof(int)*8) != 0:
{.error: "(BitsPerPage mod BitsPerUnit) should be zero!".}
template color(c): expr = c.refCount and colorMask
template color(c): untyped = c.refCount and colorMask
template setColor(c, col) =
c.refcount = c.refcount and not colorMask or col