From a786997f304745ce3766a82be06dc6a5d0c2f02c Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 14 Oct 2025 04:35:26 +0200 Subject: feat: scl: major refactors and new version of SCL. Signed-off-by: Amlal El Mahrouss --- dev/lib/core/allocator_system.hpp | 10 +++++----- dev/lib/core/error_handler.hpp | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'dev/lib/core') diff --git a/dev/lib/core/allocator_system.hpp b/dev/lib/core/allocator_system.hpp index 1243ed5..53cf095 100644 --- a/dev/lib/core/allocator_system.hpp +++ b/dev/lib/core/allocator_system.hpp @@ -5,14 +5,14 @@ * Copyright 2025, Amlal El Mahrouss. Licensed under the BSL 1.0 license */ -#ifndef _OCL_ALLOCATOR_SYSTEM_HPP -#define _OCL_ALLOCATOR_SYSTEM_HPP +#ifndef _SCL_ALLOCATOR_SYSTEM_HPP +#define _SCL_ALLOCATOR_SYSTEM_HPP #include #include #include -namespace ocl +namespace scl { template struct new_op final @@ -70,6 +70,6 @@ namespace ocl template using standard_allocator_type = allocator_system, delete_op>; -} // namespace ocl +} // namespace scl -#endif // ifndef _OCL_ALLOCATOR_SYSTEM_HPP +#endif // ifndef _SCL_ALLOCATOR_SYSTEM_HPP diff --git a/dev/lib/core/error_handler.hpp b/dev/lib/core/error_handler.hpp index 1a1515d..939a0ff 100644 --- a/dev/lib/core/error_handler.hpp +++ b/dev/lib/core/error_handler.hpp @@ -5,14 +5,14 @@ * Copyright 2025, Amlal El Mahrouss. */ -#ifndef _OCL_ERROR_HANDLER_HPP -#define _OCL_ERROR_HANDLER_HPP +#ifndef _SCL_ERROR_HANDLER_HPP +#define _SCL_ERROR_HANDLER_HPP #include #include #include -namespace ocl +namespace scl { struct basic_error_handler; @@ -26,12 +26,12 @@ namespace ocl virtual void operator()(const std::basic_string& msg) { - ocl::io::print(msg); + scl::io::print(msg); } }; using standard_error_handler = basic_error_handler; using error_handler_type = basic_error_handler; -} // namespace ocl +} // namespace scl -#endif // ifndef _OCL_ERROR_HANDLER_HPP +#endif // ifndef _SCL_ERROR_HANDLER_HPP -- cgit v1.2.3