Skip to content

Commit

Permalink
Document dispatchMultiDG
Browse files Browse the repository at this point in the history
  • Loading branch information
c-blake committed Jan 22, 2024
1 parent a3a222e commit 285069c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cligen.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1035,6 +1035,7 @@ macro dispatchMultiGen*(procBkts: varargs[untyped]): untyped =
`cases`)

macro dispatchMultiDG*(procBkts: varargs[untyped]): untyped =
## An internal macro to generate the call to `dispatchGen(itsMulti)`.
let procBrackets = if procBkts.len < 2: procBkts[0] else: procBkts
var prefix = "multi"
let multiId = ident(prefix)
Expand Down

0 comments on commit 285069c

Please sign in to comment.