Fix preprocessing bug
This commit is contained in:
parent
c0079db154
commit
650281039c
1 changed files with 2 additions and 1 deletions
|
|
@ -333,7 +333,8 @@ proc getPreprocessor*(gState: State, fullpath: string) =
|
|||
while true:
|
||||
if outp.readLine(line):
|
||||
# We want to keep blank lines here for comment processing
|
||||
if line.len > 1 and line[0] == '#' and line[1] == ' ':
|
||||
if line.len > 10 and line[0] == '#' and line[1] == ' ' and line.contains('"'):
|
||||
# # 1 "path/to/file.h" 1
|
||||
start = false
|
||||
line = line.split('"')[1].sanitizePath(noQuote = true)
|
||||
if sfile == line or
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue