mirror of
https://github.com/morgan9e/helium
synced 2026-04-15 00:44:06 +09:00
dev/lint: handle error correctly if defines are completely missing
This commit is contained in:
@@ -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()}")
|
||||
|
||||
Reference in New Issue
Block a user