From c44897c1e5e3723aa8cf84b9d2afcbfb9438d964 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Thu, 19 Mar 2026 05:17:45 +0100 Subject: [CHORE] NCSL improvements, incoming PR in progress. Signed-off-by: Amlal El Mahrouss --- include/CoreRuntimeKit/C++/abi/abi.hpp | 2 +- include/CoreRuntimeKit/C++/abi/new.hpp | 2 ++ include/CoreRuntimeKit/C++/core/base_alloc.hpp | 2 ++ include/CoreRuntimeKit/Nectar/exports.hpp | 8 ++++++++ 4 files changed, 13 insertions(+), 1 deletion(-) (limited to 'include/CoreRuntimeKit') diff --git a/include/CoreRuntimeKit/C++/abi/abi.hpp b/include/CoreRuntimeKit/C++/abi/abi.hpp index 82ffd81..c0a2680 100644 --- a/include/CoreRuntimeKit/C++/abi/abi.hpp +++ b/include/CoreRuntimeKit/C++/abi/abi.hpp @@ -10,7 +10,7 @@ __init_decl() - static constexpr int32_t __unreachable_code = 34; +static constexpr int32_t __unreachable_code = 34; inline void __compilerkit_unreachable(void) { std::base_process::signal(__unreachable_code); diff --git a/include/CoreRuntimeKit/C++/abi/new.hpp b/include/CoreRuntimeKit/C++/abi/new.hpp index 71afa28..9e86e22 100644 --- a/include/CoreRuntimeKit/C++/abi/new.hpp +++ b/include/CoreRuntimeKit/C++/abi/new.hpp @@ -8,6 +8,7 @@ #include namespace std { + struct nothrow_t final { explicit nothrow_t() = default; ~nothrow_t() = default; @@ -21,6 +22,7 @@ struct placement_t final { int32_t __align{}; size_t __size{}; }; + } // namespace std // AMLALE: Define the placement_t feature. diff --git a/include/CoreRuntimeKit/C++/core/base_alloc.hpp b/include/CoreRuntimeKit/C++/core/base_alloc.hpp index 9e10f92..4d715f7 100644 --- a/include/CoreRuntimeKit/C++/core/base_alloc.hpp +++ b/include/CoreRuntimeKit/C++/core/base_alloc.hpp @@ -8,6 +8,7 @@ #include namespace std::base_alloc { + /// @brief allocate a new class. /// @tparam KindClass the class type to allocate. template @@ -39,4 +40,5 @@ template inline void release_nothrow(KindClass ptr) noexcept { release(ptr); } + } // namespace std::base_alloc diff --git a/include/CoreRuntimeKit/Nectar/exports.hpp b/include/CoreRuntimeKit/Nectar/exports.hpp index 115484f..72638af 100644 --- a/include/CoreRuntimeKit/Nectar/exports.hpp +++ b/include/CoreRuntimeKit/Nectar/exports.hpp @@ -5,3 +5,11 @@ // Official repository: https://github.com/ne-foss-org/nectar #pragma once + +#include +#include + +/// @brief The Nectar FFI. +namespace nectar_lang { + +} -- cgit v1.2.3