fixed system.nim to use the proper getTypeInfo magic
This commit is contained in:
parent
47caccabeb
commit
988de05707
2 changed files with 6 additions and 2 deletions
|
|
@ -7,7 +7,7 @@
|
||||||
# @putenv "key" "val"
|
# @putenv "key" "val"
|
||||||
# Environment variables cannot be used in the options, however!
|
# Environment variables cannot be used in the options, however!
|
||||||
|
|
||||||
cc = clang
|
cc = gcc
|
||||||
|
|
||||||
@if nim:
|
@if nim:
|
||||||
# use the old fixed library for bootstrapping with Nim:
|
# use the old fixed library for bootstrapping with Nim:
|
||||||
|
|
|
||||||
|
|
@ -1889,4 +1889,8 @@ proc `[]=`*[T](s: var seq[T], x: TSlice[int], b: openArray[T]) =
|
||||||
else:
|
else:
|
||||||
raise newException(EOutOfRange, "differing lengths for slice assignment")
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue