From ec86d5db0f6a150db4db804876f2241451a07ffe Mon Sep 17 00:00:00 2001 From: Dominik Picheta Date: Sun, 28 Jul 2013 14:41:54 +0100 Subject: [PATCH] Improved documentation for macros.newProc. --- lib/core/macros.nim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 856bc09291..879c66df7a 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -480,6 +480,9 @@ proc ExpectKind*(n: PNimrodNode; k: set[TNimrodNodeKind]) {.compileTime.} = proc newProc*(name = newEmptyNode(); params: openarray[PNimrodNode] = []; body: PNimrodNode = newStmtList(), procType = nnkProcDef): PNimrodNode {.compileTime.} = ## shortcut for creating a new proc + ## + ## The ``params`` array should start with the return type of the proc, + ## followed by a list of IdentDefs which specify the params. assert procType in RoutineNodes result = newNimNode(procType).add( name,