Merge branch 'newalgo' of https://github.com/nimterop/nimterop into newalgo

This commit is contained in:
Ganesh Viswanathan 2020-01-16 12:50:24 -06:00
commit d053355ead
2 changed files with 4 additions and 2 deletions

View file

@ -30,6 +30,8 @@ yield""".split(Whitespace).toHashSet()
# Types related
# Types related
const gTypeMap* = {
# char
"char": "cchar",

View file

@ -162,9 +162,9 @@ proc main(
# Rerun nim check on stubbed wrapper
(check, err) = execCmdEx(&"{gState.nim} check {outputFile}")
doAssert err == 0, data & "# Nim check with stub failed:\n\n" & check
doAssert err == 0, data & "\n# Nim check with stub failed:\n\n" & check
else:
doAssert err == 0, outputFile.readFile() & "# Nim check failed:\n\n" & check
doAssert err == 0, outputFile.readFile() & "\n# Nim check failed:\n\n" & check
# Print wrapper if temporarily redirected to file
if check and output.len == 0: