diff options
author | Arne Döring <arne.doering@gmx.net> | 2018-07-16 19:30:05 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-07-16 19:30:05 +0200 |
commit | 97d37aeb0bb1ed2997eddb3b7f8ef53cd04f10ef (patch) | |
tree | 889820d6b9e044d8d762543c50088893596453ea /compiler | |
parent | 217a2cf0982302b9d89d2c06fc96eaf72f0518fe (diff) | |
download | Nim-97d37aeb0bb1ed2997eddb3b7f8ef53cd04f10ef.tar.gz |
Gdb pretty printers (#8263)
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/astalgo.nim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/astalgo.nim b/compiler/astalgo.nim index f474ca65e..333376f6a 100644 --- a/compiler/astalgo.nim +++ b/compiler/astalgo.nim @@ -27,9 +27,9 @@ proc lineInfoToStr*(conf: ConfigRef; info: TLineInfo): Rope when declared(echo): # these are for debugging only: They are not really deprecated, but I want # the warning so that release versions do not contain debugging statements: - proc debug*(n: PSym; conf: ConfigRef = nil) {.deprecated.} - proc debug*(n: PType; conf: ConfigRef = nil) {.deprecated.} - proc debug*(n: PNode; conf: ConfigRef = nil) {.deprecated.} + proc debug*(n: PSym; conf: ConfigRef = nil) {.exportc: "debugSym", deprecated.} + proc debug*(n: PType; conf: ConfigRef = nil) {.exportc: "debugType", deprecated.} + proc debug*(n: PNode; conf: ConfigRef = nil) {.exportc: "debugNode", deprecated.} template debug*(x: PSym|PType|PNode) {.deprecated.} = when compiles(c.config): |