[libcxx-commits] [libcxx] [libcxxabi] [libc++][hardening] Introduce assertion semantics (PR #148268)
Konstantin Varlamov via libcxx-commits
libcxx-commits at lists.llvm.org
Sun Jul 13 15:02:56 PDT 2025
================
@@ -13,34 +13,52 @@
#if __cplusplus < 201103L && defined(_LIBCPP_USE_FROZEN_CXX03_HEADERS)
# include <__cxx03/__config>
# include <__cxx03/__verbose_abort>
+# include <__cxx03/__verbose_trap>
#else
# include <__config>
+# include <__log_error>
# include <__verbose_abort>
+# include <__verbose_trap>
#endif
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
# pragma GCC system_header
#endif
-#if _LIBCPP_HARDENING_MODE == _LIBCPP_HARDENING_MODE_DEBUG
----------------
var-const wrote:
This isn't very pretty, but I can't think of a better way, assuming we don't want to add new functionality to the frozen headers.
https://github.com/llvm/llvm-project/pull/148268
More information about the libcxx-commits
mailing list