diff --git a/libc/newhdrgen/class_implementation/classes/function.py b/libc/newhdrgen/class_implementation/classes/function.py index ea5e8223a538ef..845ef1aebf54b8 100644 --- a/libc/newhdrgen/class_implementation/classes/function.py +++ b/libc/newhdrgen/class_implementation/classes/function.py @@ -26,7 +26,7 @@ def __str__(self): attributes_str = " ".join(self.attributes) arguments_str = ", ".join(self.arguments) if attributes_str == "": - result = f"{self.return_type} {self.name}({arguments_str}) __NOEXCEPT;" + result = f"{self.return_type} {self.name}({arguments_str})" else: - result = f"{attributes_str} {self.return_type} {self.name}({arguments_str}) __NOEXCEPT;" + result = f"{attributes_str} {self.return_type} {self.name}({arguments_str})" return result diff --git a/libc/newhdrgen/header.py b/libc/newhdrgen/header.py index 2671f00d7e47a4..d1f0fe96dbc60d 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)) + 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)) + content.append(str(function) + "__NOEXCEPT;") content.append("") elif current_guard == function.guard: - content.append(str(function)) + 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)) + content.append(str(function) + "__NOEXCEPT;") content.append("") if current_guard != None: content.pop()