[libc-commits] [libc] [libc][annex_k] Add abort_handler_s. (PR #164089)

Victor Campos via libc-commits libc-commits at lists.llvm.org
Wed Mar 25 05:56:23 PDT 2026


================
@@ -0,0 +1,20 @@
+//===-- Implementation for abort_handler_s ----------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/stdlib/abort_handler_s.h"
+#include "src/__support/annex_k/abort_handler_s.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+LLVM_LIBC_FUNCTION(void, abort_handler_s,
+                   (const char *__restrict msg, void *__restrict ptr,
+                    errno_t error)) {
+  return annex_k::abort_handler_s(msg, ptr, error);
----------------
vhscampos wrote:

What's the reasoning for having the actual definition inside `__support/annex_k`?

https://github.com/llvm/llvm-project/pull/164089


More information about the libc-commits mailing list