[libc-commits] [libc] [libc] Add _Returns_twice to C++ code (PR #153602)
William Huynh via libc-commits
libc-commits at lists.llvm.org
Mon Aug 18 03:53:29 PDT 2025
================
@@ -47,6 +47,9 @@
#define __NOEXCEPT throw()
#endif
+#undef _Returns_twice
+#define _Returns_twice [[gnu::returns_twice]]
+
----------------
saturn691 wrote:
Good point, I've settled with preferring to generate the new attribute syntax if the compile supports it (C++11) onwards.
https://github.com/llvm/llvm-project/pull/153602
More information about the libc-commits
mailing list