diff options
author | Araq <rumpf_a@web.de> | 2015-08-21 02:34:34 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2015-08-21 02:34:34 +0200 |
commit | 695e2e970e5ee560d324d6775c202f9b808f97fa (patch) | |
tree | ee9a89024a46a4eaf425c1000b5c0406c5c99633 /lib/core/macros.nim | |
parent | a2bb7d4c71e0804dd57c8e4d7ba16cf61ab184f1 (diff) | |
download | Nim-695e2e970e5ee560d324d6775c202f9b808f97fa.tar.gz |
implemented macros.getImpl
Diffstat (limited to 'lib/core/macros.nim')
-rw-r--r-- | lib/core/macros.nim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index d371a92cf..2058229a1 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -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 |