diff options
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/macros.nim | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index d371a92cf..552c0dbff 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -213,6 +213,11 @@ 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. + discard + proc error*(msg: string) {.magic: "NError", benign.} ## writes an error message at compile time |