diff --git a/libc/newhdrgen/header.py b/libc/newhdrgen/header.py index 69de81eebb7198..141e3c9b2736b6 100644 --- a/libc/newhdrgen/header.py +++ b/libc/newhdrgen/header.py @@ -60,16 +60,16 @@ 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() @@ -77,7 +77,7 @@ def __str__(self): 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()