Fix up ifdefery

This commit is contained in:
Auke Kok 2016-01-01 12:39:34 -08:00
parent 5f23622992
commit 9ea187854f

View File

@ -8,7 +8,7 @@ def preprocess(lines, flags):
continue
if line[0] == "#":
if line.startswith("#ifdef"):
cond = line[4:].strip()
cond = line[7:].strip()
if skip_level > 0 or cond not in flags:
skip_level += 1
elif line.startswith("#else"):