dev/lint: handle error correctly if defines are completely missing

This commit is contained in:
jj
2025-07-27 22:30:49 +00:00
parent 10132253e9
commit a86284a2c8

View File

@@ -113,4 +113,4 @@ def c_all_new_headers_have_correct_guard(root):
for macro_type, value in found.items():
if value != f"+{expected[macro_type]}":
print(f"Patch {patch} has unexpected {macro_type} in {file.path}:")
print(f"{value.rstrip()}, expecting: {expected[macro_type].rstrip()}")
print(f"{(value or "(none)").rstrip()}, expecting: {expected[macro_type].rstrip()}")