document macros.unpackVarargs (#18106)
* deprecate macros.unpackVarargs * un-deprecate unpackVarargs and add docs+runnableExamples * update examples + tests with varargs[typed]
This commit is contained in:
parent
98ea61f09b
commit
18b4774311
3 changed files with 66 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ template `.=`*[T](s: SharedPtr[T]; field, value: untyped) =
|
|||
from macros import unpackVarargs
|
||||
|
||||
template `.()`*[T](s: SharedPtr[T]; field: untyped, args: varargs[untyped]): untyped =
|
||||
# xxx this isn't used, the test should be improved
|
||||
unpackVarargs(s.x.field, args)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue