This commit is contained in:
Ganesh Viswanathan 2018-07-09 14:09:45 -05:00
commit 0e016bd7bb
2 changed files with 20 additions and 18 deletions

View file

@ -647,22 +647,24 @@ proc runFile(file: string, cfgin: OrderedTableRef) =
var noprocess = false
for act in cfg.keys():
let (action, val) = getKey(act)
if val == true:
if cfg[act] == "true":
if act == "recurse":
if action == "recurse":
c2nimConfig.recurse = true
elif act == "inline":
elif action == "inline":
c2nimConfig.inline = true
elif act == "preprocess":
elif action == "preprocess":
c2nimConfig.preprocess = true
elif act == "ctags":
elif action == "ctags":
c2nimConfig.ctags = true
elif act == "defines":
elif action == "defines":
c2nimConfig.defines = true
elif act == "noprocess":
elif action == "noprocess":
noprocess = true
elif act == "flags":
elif action == "flags":
c2nimConfig.flags = cfg[act]
elif act == "ppflags":
elif action == "ppflags":
c2nimConfig.ppflags = cfg[act]
if c2nimConfig.recurse and c2nimConfig.inline:

View file

@ -1,6 +1,6 @@
# Package
version = "0.2.3"
version = "0.2.4"
author = "genotrance"
description = "c2nim helper to simplify and automate the wrapping of C libraries"
license = "MIT"