diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2016-11-28 10:56:45 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2016-11-28 10:56:45 +0100 |
commit | 7ca72a733c7960eee1c86a4c46b0aac47fe851fc (patch) | |
tree | f9ebef7b3a3ed6349b99c14488d5906d824fdce8 /lib/system/hti.nim | |
parent | e83d11e8f17c384aa9f717936128d7a2d9c2b512 (diff) | |
download | Nim-7ca72a733c7960eee1c86a4c46b0aac47fe851fc.tar.gz |
use -d:nimTypeNames to create RTTI with type names
Diffstat (limited to 'lib/system/hti.nim')
-rw-r--r-- | lib/system/hti.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/hti.nim b/lib/system/hti.nim index 892a209df..d5cca7c1c 100644 --- a/lib/system/hti.nim +++ b/lib/system/hti.nim @@ -86,6 +86,8 @@ type finalizer: pointer # the finalizer for the type marker: proc (p: pointer, op: int) {.nimcall, benign.} # marker proc for GC deepcopy: proc (p: pointer): pointer {.nimcall, benign.} + when defined(nimTypeNames): + name: cstring PNimType = ptr TNimType # node.len may be the ``first`` element of a set |