Skip to content

Commit

Permalink
use since
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Dec 21, 2019
1 parent f371a43 commit c026df0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/system.nim
Original file line number Diff line number Diff line change
Expand Up @@ -4198,11 +4198,10 @@ type
NimNode* {.magic: "PNimrodNode".} = ref NimNodeObj
## Represents a Nim AST node. Macros operate on this type.

when (NimMajor, NimMinor) >= (1, 1):
macro lenVarargs*(x: varargs[untyped]): int =
## returns number of variadic arguments in `x`
proc lenVarargsImpl(x: NimNode): NimNode {.magic: "LengthOpenArray", noSideEffect.}
lenVarargsImpl(x)
macro lenVarargs*(x: varargs[untyped]): int {.since: (1, 1).} =
## returns number of variadic arguments in `x`
proc lenVarargsImpl(x: NimNode): NimNode {.magic: "LengthOpenArray", noSideEffect.}
lenVarargsImpl(x)

when false:
template eval*(blk: typed): typed =
Expand Down

0 comments on commit c026df0

Please sign in to comment.