More workarounds for #5098
This commit is contained in:
parent
57c4e78bcc
commit
54cbe0b743
3 changed files with 11 additions and 3 deletions
|
|
@ -160,7 +160,10 @@ proc peekLast*[T](deq: Deque[T]): T {.inline.} =
|
|||
emptyCheck(deq)
|
||||
result = deq.data[(deq.tail - 1) and deq.mask]
|
||||
|
||||
proc default[T](t: typedesc[T]): T {.inline.} = discard
|
||||
template default[T](t: typedesc[T]): T =
|
||||
var v: T
|
||||
v
|
||||
|
||||
proc popFirst*[T](deq: var Deque[T]): T {.inline, discardable.} =
|
||||
## Remove and returns the first element of the `deq`.
|
||||
emptyCheck(deq)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue