use -d:nimTypeNames to create RTTI with type names

This commit is contained in:
Andreas Rumpf 2016-11-28 10:56:45 +01:00
commit 7ca72a733c
2 changed files with 4 additions and 0 deletions

View file

@ -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