From d3ec5a2cee1defc22bdbbd5a53a68deb3fc9a444 Mon Sep 17 00:00:00 2001 From: Simon Hafner Date: Sat, 15 Jun 2013 12:55:26 -0500 Subject: [PATCH] added InSystemModule for hti.nim --- lib/system.nim | 2 ++ lib/system/hti.nim | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/system.nim b/lib/system.nim index c37231332..baf98ae63 100644 --- a/lib/system.nim +++ b/lib/system.nim @@ -47,6 +47,8 @@ const {.push hints: off.} +const InSystemModule = true + type Ordinal* {.magic: Ordinal.}[T] `nil` {.magic: "Nil".} diff --git a/lib/system/hti.nim b/lib/system/hti.nim index a2d132dbf..ae7468afe 100644 --- a/lib/system/hti.nim +++ b/lib/system/hti.nim @@ -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.}