From 375b444ecd41645c848fe369a777a53f9312fbe3 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Sat, 20 Apr 2019 22:16:22 +0200 Subject: [PATCH] make -d:nimQuirky work with devel --- lib/system/ansi_c.nim | 2 +- lib/system/fatal.nim | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/system/ansi_c.nim b/lib/system/ansi_c.nim index 23828af91b..99f66961d3 100644 --- a/lib/system/ansi_c.nim +++ b/lib/system/ansi_c.nim @@ -148,4 +148,4 @@ proc rawWrite*(f: CFilePtr, s: cstring) {.compilerproc, nonreloadable, inline.} # we cannot throw an exception here! discard c_fwrite(s, 1, s.len, f) -{.pop} +{.pop.} diff --git a/lib/system/fatal.nim b/lib/system/fatal.nim index 100b6d482d..82704a2e78 100644 --- a/lib/system/fatal.nim +++ b/lib/system/fatal.nim @@ -10,6 +10,8 @@ when hostOS == "standalone": panic(arg) elif defined(nimQuirky) and not defined(nimscript): + import ansi_c + proc name(t: typedesc): string {.magic: "TypeTrait".} proc sysFatal(exceptn: typedesc, message, arg: string) {.inline, noReturn.} =