From 988de05707ef66ac522542011b1f864a74ee7de2 Mon Sep 17 00:00:00 2001 From: Araq Date: Fri, 10 Jun 2011 02:25:43 +0200 Subject: [PATCH] fixed system.nim to use the proper getTypeInfo magic --- config/nimrod.cfg | 2 +- lib/system.nim | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/config/nimrod.cfg b/config/nimrod.cfg index fd1142c3a2..32849a68a3 100755 --- a/config/nimrod.cfg +++ b/config/nimrod.cfg @@ -7,7 +7,7 @@ # @putenv "key" "val" # Environment variables cannot be used in the options, however! -cc = clang +cc = gcc @if nim: # use the old fixed library for bootstrapping with Nim: diff --git a/lib/system.nim b/lib/system.nim index e348bafea9..1c8bf3ae9c 100755 --- a/lib/system.nim +++ b/lib/system.nim @@ -1889,4 +1889,8 @@ proc `[]=`*[T](s: var seq[T], x: TSlice[int], b: openArray[T]) = else: raise newException(EOutOfRange, "differing lengths for slice assignment") -proc getTypeInfo*[T](x: T): pointer {.magic: "ToAny".} +proc getTypeInfo*[T](x: T): pointer {.magic: "GetTypeInfo".} + ## get type information for `x`. Ordinary code should not use this, but + ## the `typeinfo` module instead. + +