macros module: 'name' proc skips the export marker
This commit is contained in:
parent
b47e448e06
commit
57f0936f2a
1 changed files with 2 additions and 0 deletions
|
|
@ -891,6 +891,8 @@ template expectRoutine(node: NimNode) =
|
|||
proc name*(someProc: NimNode): NimNode {.compileTime.} =
|
||||
someProc.expectRoutine
|
||||
result = someProc[0]
|
||||
if result.kind == nnkPostfix:
|
||||
result = result[1]
|
||||
proc `name=`*(someProc: NimNode; val: NimNode) {.compileTime.} =
|
||||
someProc.expectRoutine
|
||||
someProc[0] = val
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue