diff options
author | Araq <rumpf_a@web.de> | 2011-06-10 02:22:28 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-06-10 02:22:28 +0200 |
commit | 47caccabeb8d2349b73b333bcce3b17b36dbc7c1 (patch) | |
tree | 4650001ea8fe64cedc290920bc2cb3c4a1a576c4 /lib/system | |
parent | 5f2d930a54c5b51e29b133f5e9753a8101092553 (diff) | |
parent | 8b98ba9a63a4ccbdb456802dda9b936baaa925b2 (diff) | |
download | Nim-47caccabeb8d2349b73b333bcce3b17b36dbc7c1.tar.gz |
Merge branch 'master' of github.com:Araq/Nimrod
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/hti.nim | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/system/hti.nim b/lib/system/hti.nim index c6ea0bc44..c5b6967ef 100755 --- a/lib/system/hti.nim +++ b/lib/system/hti.nim @@ -7,6 +7,12 @@ # distribution, for details about the copyright. # +when defined(NimString): + # we are in system module: + {.pragma: codegenType, compilerproc.} +else: + {.pragma: codegenType.} + type # This should be he same as ast.TTypeKind # many enum fields are not used at runtime TNimKind = enum @@ -35,7 +41,7 @@ type # This should be he same as ast.TTypeKind tyPureObject # signals that object has no `n_type` field TNimNodeKind = enum nkNone, nkSlot, nkList, nkCase - TNimNode {.compilerproc, final.} = object + TNimNode {.codegenType, final.} = object kind: TNimNodeKind offset: int typ: ptr TNimType @@ -48,7 +54,7 @@ type # This should be he same as ast.TTypeKind ntfAcyclic = 1, # type cannot form a cycle ntfEnumHole = 2 # enum has holes and thus `$` for them needs the slow # version - TNimType {.compilerproc, final.} = object + TNimType {.codegenType, final.} = object size: int kind: TNimKind flags: set[TNimTypeFlag] |