diff options
author | Araq <rumpf_a@web.de> | 2013-03-25 02:20:12 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-03-25 02:20:12 +0100 |
commit | 74404de12d4108a129a70ff93eaf08e0526c0515 (patch) | |
tree | 0a1fb2b7a7c5068b609b93b29127cd0816e5d158 /lib/core | |
parent | 3051c52f517be70b4efb8d5823a3f4cb5cb7cd5e (diff) | |
download | Nim-74404de12d4108a129a70ff93eaf08e0526c0515.tar.gz |
added immediate versions of macros.dumpLisp and dumpTree
Diffstat (limited to 'lib/core')
-rw-r--r-- | lib/core/macros.nim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim index 8ed9be2f4..6f4d75b9b 100644 --- a/lib/core/macros.nim +++ b/lib/core/macros.nim @@ -400,3 +400,9 @@ macro dumpLisp*(s: stmt): stmt = echo s.lispRepr ## ## See `dumpTree`. +macro dumpTreeImm*(s: stmt): stmt {.immediate.} = echo s.treeRepr + ## The ``immediate`` version of `dumpTree`. + +macro dumpLispImm*(s: stmt): stmt {.immediate.} = echo s.lispRepr + ## The ``immediate`` version of `dumpLisp`. + |