summaryrefslogtreecommitdiffhomepage
path: root/include/LibC++
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-05 16:48:25 -0500
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-05 16:48:25 -0500
commit6decb96948f61b9a311467ecdb621a048fbcd3d6 (patch)
tree247d8b92e42068b53e2ebbeccb21e31a545ecd30 /include/LibC++
parent037ac38824623c13070384e8fc0e70c4770dcdbd (diff)
chore: CompilerKit breaking changes.v0.0.81
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/LibC++')
-rw-r--r--include/LibC++/__abi+unreachable.inl16
-rw-r--r--include/LibC++/__abi.h9
2 files changed, 8 insertions, 17 deletions
diff --git a/include/LibC++/__abi+unreachable.inl b/include/LibC++/__abi+unreachable.inl
deleted file mode 100644
index 5628e7d..0000000
--- a/include/LibC++/__abi+unreachable.inl
+++ /dev/null
@@ -1,16 +0,0 @@
-/* ========================================
-
- Copyright (C) 2025 Amlal El Mahrouss, Licensed under the Apache 2.0 license.
-
-======================================== */
-
-#include <LibC++/__abi.h>
-#include <LibC++/base_process.h>
-
-static const int32_t __unreachable_code = 34;
-
-extern "C" void __compilerkit_unreachable(void) {
- std::base_process::signal(__unreachable_code);
-
- while (1);
-} \ No newline at end of file
diff --git a/include/LibC++/__abi.h b/include/LibC++/__abi.h
index 206b5ef..6b4b058 100644
--- a/include/LibC++/__abi.h
+++ b/include/LibC++/__abi.h
@@ -7,9 +7,16 @@
#pragma once
#include <LibC++/defines.h>
+#include <LibC++/base_process.h>
__init_decl()
- extern void __compilerkit_unreachable(void);
+static constexpr int32_t __unreachable_code = 34;
+
+inline void __compilerkit_unreachable(void) {
+ std::base_process::signal(__unreachable_code);
+
+ while (1);
+}
__fini_decl() \ No newline at end of file