mirror of
https://github.com/status-im/nim-libp2p.git
synced 2025-01-11 05:26:02 +00:00
make isLiteral
compatible with ARC and ORC
This commit is contained in:
parent
1681197d67
commit
2d4dad0716
@ -37,6 +37,9 @@ proc len*(vb: VBuffer): int =
|
||||
doAssert(result >= 0)
|
||||
|
||||
proc isLiteral[T](s: seq[T]): bool {.inline.} =
|
||||
when defined(gcOrc) or defined(gcArc):
|
||||
false
|
||||
else:
|
||||
type
|
||||
SeqHeader = object
|
||||
length, reserved: int
|
||||
|
Loading…
x
Reference in New Issue
Block a user