diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-14 04:35:26 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-14 04:35:26 +0200 |
| commit | a786997f304745ce3766a82be06dc6a5d0c2f02c (patch) | |
| tree | db923caaec3762fbb68290fd1ae94cb1465378e7 /dev/lib/core | |
| parent | fa4748e414e9494442f9bcde9c659d3951af19c0 (diff) | |
feat: scl: major refactors and new version of SCL.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/lib/core')
| -rw-r--r-- | dev/lib/core/allocator_system.hpp | 10 | ||||
| -rw-r--r-- | dev/lib/core/error_handler.hpp | 12 |
2 files changed, 11 insertions, 11 deletions
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 <lib/core/includes.hpp> #include <stdexcept> #include <memory> -namespace ocl +namespace scl { template <typename type> struct new_op final @@ -70,6 +70,6 @@ namespace ocl template <typename type> using standard_allocator_type = allocator_system<type, new_op<type>, delete_op<type>>; -} // 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 <lib/core/includes.hpp> #include <lib/io/print.hpp> #include <stdexcept> -namespace ocl +namespace scl { struct basic_error_handler; @@ -26,12 +26,12 @@ namespace ocl virtual void operator()(const std::basic_string<char>& 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 |
