Skip to content

Commit 3dd1b46

Browse files
authored
Merge pull request #4 from sysprog21/fix_preprocessor_expanded_empty
Check empty strings on macro expansion
2 parents 915e7bc + a8c4929 commit 3dd1b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kconfiglib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2612,7 +2612,7 @@ def _parse_assignment(self, s):
26122612
else:
26132613
break
26142614

2615-
if s.isspace():
2615+
if not s or s.isspace():
26162616
# We also accept a bare macro on a line (e.g.
26172617
# $(warning-if,$(foo),ops)), provided it expands to a blank string
26182618
return

0 commit comments

Comments
 (0)