We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c141e2 commit 45b1594Copy full SHA for 45b1594
libc/utils/hdrgen/hdrgen/header.py
@@ -204,7 +204,7 @@ def relpath(file):
204
205
current_guard = None
206
for function in self.functions:
207
- if function.guard == None:
+ if function.guard == None and current_guard == None:
208
content.append(str(function) + " __NOEXCEPT;")
209
content.append("")
210
else:
@@ -221,7 +221,8 @@ def relpath(file):
221
content.append(f"#endif // {current_guard}")
222
223
current_guard = function.guard
224
- content.append(f"#ifdef {current_guard}")
+ if current_guard is not None:
225
+ content.append(f"#ifdef {current_guard}")
226
227
228
if current_guard != None:
0 commit comments