Skip to content

Commit 39fe98e

Browse files
committed
Add comment wrt Macro.__str__ use
1 parent 03f18c8 commit 39fe98e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libc/utils/hdrgen/header.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ def public_api(self):
5050
] + [""]
5151

5252
for macro in self.macros:
53+
# When there is nothing to define, the Macro object converts to str
54+
# as an empty string. Don't emit a blank line for those cases.
5355
if str(macro):
5456
content.append(f"{macro}\n")
5557

0 commit comments

Comments
 (0)