added InSystemModule for hti.nim

This commit is contained in:
Simon Hafner 2013-06-15 12:55:26 -05:00
commit d3ec5a2cee
2 changed files with 3 additions and 2 deletions

View file

@ -47,6 +47,8 @@ const
{.push hints: off.}
const InSystemModule = true
type
Ordinal* {.magic: Ordinal.}[T]
`nil` {.magic: "Nil".}

View file

@ -7,8 +7,7 @@
# distribution, for details about the copyright.
#
when defined(NimString):
# we are in system module:
when defined(InSystemModule):
{.pragma: codegenType, compilerproc.}
else:
{.pragma: codegenType.}