Merge branch 'newalgo' of https://github.com/nimterop/nimterop into newalgo
This commit is contained in:
commit
d053355ead
2 changed files with 4 additions and 2 deletions
|
|
@ -30,6 +30,8 @@ yield""".split(Whitespace).toHashSet()
|
||||||
|
|
||||||
# Types related
|
# Types related
|
||||||
|
|
||||||
|
# Types related
|
||||||
|
|
||||||
const gTypeMap* = {
|
const gTypeMap* = {
|
||||||
# char
|
# char
|
||||||
"char": "cchar",
|
"char": "cchar",
|
||||||
|
|
|
||||||
|
|
@ -162,9 +162,9 @@ proc main(
|
||||||
|
|
||||||
# Rerun nim check on stubbed wrapper
|
# Rerun nim check on stubbed wrapper
|
||||||
(check, err) = execCmdEx(&"{gState.nim} check {outputFile}")
|
(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:
|
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
|
# Print wrapper if temporarily redirected to file
|
||||||
if check and output.len == 0:
|
if check and output.len == 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue