Task proc in nimscript module will now export the proc it creates.

This commit is contained in:
Dominik Picheta
2015-12-24 17:09:58 +00:00
parent ebd14bde4f
commit a01eb098f1

View File

@@ -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":