summary refs log tree commit diff stats
path: root/lib/core
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-08-11 20:38:28 +0200
committerAraq <rumpf_a@web.de>2014-08-11 20:38:28 +0200
commitdd806cafa0193acb9e79fdd47ec6810da3c48272 (patch)
treeb42f7aacdd844e9402a3308e363f71e14db8b78a /lib/core
parentb1c8461a3b738cb4383b2e23ba24f36960a8604c (diff)
downloadNim-dd806cafa0193acb9e79fdd47ec6810da3c48272.tar.gz
distinguish between 'defined' and 'declared'
Diffstat (limited to 'lib/core')
-rw-r--r--lib/core/typeinfo.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim
index 57e11664b..8df1b3dfb 100644
--- a/lib/core/typeinfo.nim
+++ b/lib/core/typeinfo.nim
@@ -102,7 +102,7 @@ proc newAny(value: pointer, rawType: PNimType): TAny =
   result.value = value
   result.rawType = rawType
 
-when defined(system.TVarSlot):
+when declared(system.TVarSlot):
   proc toAny*(x: TVarSlot): TAny {.inline.} =
     ## constructs a ``TAny`` object from a variable slot ``x``. 
     ## This captures `x`'s address, so `x` can be modified with its