Fix #123
This commit is contained in:
parent
8fcf8011a5
commit
2bad84c4c1
1 changed files with 3 additions and 3 deletions
|
|
@ -74,7 +74,7 @@ const gTypeMap = {
|
|||
}.toTable()
|
||||
|
||||
proc sanitizePath*(path: string): string =
|
||||
path.multiReplace([("\\\\", $DirSep), ("\\", $DirSep), ("//", $DirSep)])
|
||||
path.multiReplace([("\\\\", $DirSep), ("\\", $DirSep), ("/", $DirSep)])
|
||||
|
||||
proc getType*(str: string): string =
|
||||
if str == "void":
|
||||
|
|
@ -216,7 +216,7 @@ proc getPreprocessor*(fullpath: string, mode = "cpp"): string =
|
|||
for def in gStateRT.defines:
|
||||
cmd &= &"-D{def} "
|
||||
|
||||
cmd &= &"\"{fullpath.quoteShell}\""
|
||||
cmd &= &"{fullpath.quoteShell}"
|
||||
|
||||
# Include content only from file
|
||||
for line in execAction(cmd).splitLines():
|
||||
|
|
@ -231,7 +231,7 @@ proc getPreprocessor*(fullpath: string, mode = "cpp"): string =
|
|||
start = true
|
||||
elif gStateRT.recurse:
|
||||
let
|
||||
pDir = sfile.expandFilename().parentDir()
|
||||
pDir = sfile.expandFilename().parentDir().sanitizePath()
|
||||
if pDir.len == 0 or pDir in saniLine:
|
||||
start = true
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue