diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2015-06-16 20:46:23 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2015-06-16 20:46:23 +0200 |
commit | ad1ac7656733fb8320fa4b144f40147b291b50f3 (patch) | |
tree | b4811057a49fde7448a8ce516c063055cad2ba6d /lib/core | |
parent | 3772944fdbdbf73b794ddf95a4ff0e110abb00d0 (diff) | |
parent | b487d4e42501fa5d1ef8f589a0cd89c187d09fc3 (diff) | |
download | Nim-ad1ac7656733fb8320fa4b144f40147b291b50f3.tar.gz |
Merge pull request #2851 from stefantalpalaru/gogc
the Go GC (using the gccgo implementation)
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/typeinfo.nim | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/core/typeinfo.nim b/lib/core/typeinfo.nim index ab150b2a4..dc97784c3 100644 --- a/lib/core/typeinfo.nim +++ b/lib/core/typeinfo.nim @@ -68,11 +68,15 @@ type TGenericSeq {.importc.} = object len, space: int + when defined(gogc): + elemSize: int PGenSeq = ptr TGenericSeq {.deprecated: [TAny: Any, TAnyKind: AnyKind].} -const - GenericSeqSize = (2 * sizeof(int)) +when defined(gogc): + const GenericSeqSize = (3 * sizeof(int)) +else: + const GenericSeqSize = (2 * sizeof(int)) proc genericAssign(dest, src: pointer, mt: PNimType) {.importCompilerProc.} proc genericShallowAssign(dest, src: pointer, mt: PNimType) {. |