implemented macros.getImpl

This commit is contained in:
Araq 2015-08-21 02:34:34 +02:00
commit 695e2e970e
8 changed files with 39 additions and 2 deletions

View file

@ -213,6 +213,10 @@ proc newNimNode*(kind: NimNodeKind,
proc copyNimNode*(n: NimNode): NimNode {.magic: "NCopyNimNode", noSideEffect.}
proc copyNimTree*(n: NimNode): NimNode {.magic: "NCopyNimTree", noSideEffect.}
proc getImpl*(s: NimSym): NimNode {.magic: "GetImpl", noSideEffect.}
## retrieve the implementation of a symbol `s`. `s` can be a routine or a
## const.
proc error*(msg: string) {.magic: "NError", benign.}
## writes an error message at compile time