Task proc in nimscript module will now export the proc it creates.
This commit is contained in:
parent
ebd14bde4f
commit
a01eb098f1
1 changed files with 1 additions and 1 deletions
|
|
@ -242,7 +242,7 @@ template task*(name: untyped; description: string; body: untyped): untyped =
|
|||
## .. code-block:: nim
|
||||
## task build, "default build is via the C backend":
|
||||
## setCommand "c"
|
||||
proc `name Task`() = body
|
||||
proc `name Task`*() = body
|
||||
|
||||
let cmd = getCommand()
|
||||
if cmd.len == 0 or cmd ==? "help":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue