make C++ tests green again

This commit is contained in:
Andreas Rumpf
2018-01-22 14:06:53 +01:00
parent 6e145d4269
commit 0dd1811344

View File

@@ -386,9 +386,9 @@ proc writeStackTrace() =
when hasSomeStackTrace:
var s = ""
rawWriteStackTrace(s)
cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s)
cast[proc (s: cstring) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)(s)
else:
cast[proc (s: string) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n")
cast[proc (s: cstring) {.noSideEffect, tags: [], nimcall.}](showErrorMessage)("No stack traceback available\n")
proc getStackTrace(): string =
when hasSomeStackTrace: