conditional TGenericSeq extension
This commit is contained in:
parent
8624654c57
commit
b487d4e425
3 changed files with 18 additions and 8 deletions
|
|
@ -67,12 +67,16 @@ type
|
|||
pbyteArray = ptr array[0.. 0xffff, int8]
|
||||
|
||||
TGenericSeq {.importc.} = object
|
||||
len, space, elemSize: int
|
||||
len, space: int
|
||||
when defined(gogc):
|
||||
elemSize: int
|
||||
PGenSeq = ptr TGenericSeq
|
||||
{.deprecated: [TAny: Any, TAnyKind: AnyKind].}
|
||||
|
||||
const
|
||||
GenericSeqSize = (3 * 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) {.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue