Skip to content

Commit

Permalink
nit spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
RoseZhang03 committed Jul 17, 2024
1 parent add676b commit 3ffc0ee
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libc/newhdrgen/header.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,24 +60,24 @@ def __str__(self):
current_guard = None
for function in self.functions:
if function.guard == None:
content.append(str(function) + "__NOEXCEPT")
content.append(str(function) + " __NOEXCEPT;")
content.append("")
else:
if current_guard == None:
current_guard = function.guard
content.append(f"#ifdef {current_guard}")
content.append(str(function) + "__NOEXCEPT")
content.append(str(function) + " __NOEXCEPT;")
content.append("")
elif current_guard == function.guard:
content.append(str(function) + "__NOEXCEPT")
content.append(str(function) + " __NOEXCEPT;")
content.append("")
else:
content.pop()
content.append(f"#endif // {current_guard}")
content.append("")
current_guard = function.guard
content.append(f"#ifdef {current_guard}")
content.append(str(function) + "__NOEXCEPT")
content.append(str(function) + " __NOEXCEPT;")
content.append("")
if current_guard != None:
content.pop()
Expand Down

0 comments on commit 3ffc0ee

Please sign in to comment.