make tests green again

This commit is contained in:
Araq
2019-06-27 17:10:11 +02:00
parent fb878330a9
commit f36a61e6d4

View File

@@ -3416,7 +3416,7 @@ template newException*(exceptn: typedesc, message: string;
e.parent = parentException
e
when defined(nogc):
when hostOS == "standalone" and defined(nogc):
proc nimToCStringConv(s: NimString): cstring {.compilerProc, inline.} =
if s == nil or s.len == 0: result = cstring""
else: result = cstring(addr s.data)