This commit is contained in:
Andreas Rumpf 2019-06-27 14:46:38 +02:00
commit fb878330a9

View file

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