c2nImport ret, del specials from header, cache if exec not die, ast2 type pragma improvements

This commit is contained in:
Ganesh Viswanathan 2020-03-30 15:46:34 -05:00
commit e06917f40f
6 changed files with 306 additions and 105 deletions

View file

@ -5,8 +5,6 @@ author = "genotrance"
description = "C/C++ interop for Nim"
license = "MIT"
# this gives Warning: Binary 'nimterop/toast' was already installed from source directory
# when running `nimble install --verbose -y`
bin = @["nimterop/toast"]
installDirs = @["nimterop"]
installFiles = @["config.nims"]
@ -37,7 +35,7 @@ task test, "Test":
buildToastTask()
execTest "tests/tast2.nim"
#execCmd "nim c -f -d:HEADER -r tests/tast2.nim"
execCmd "nim c -f -d:HEADER -r tests/tast2.nim"
execTest "tests/tnimterop_c.nim"
execCmd "nim cpp -f -r tests/tnimterop_cpp.nim"
@ -53,5 +51,6 @@ task test, "Test":
# getHeader tests
withDir("tests"):
execCmd("nim e getheader.nims")
execCmd("nim e wrappers.nims")
docsTask()