diff options
| -rw-r--r-- | CLAUDE.md | 8 | ||||
| -rw-r--r-- | include/ocl/allocator_op.hpp | 6 | ||||
| -rw-r--r-- | include/ocl/basic_hash.hpp | 4 | ||||
| -rw-r--r-- | include/ocl/crc_hash.hpp | 6 | ||||
| -rw-r--r-- | include/ocl/detail/config.hpp | 6 | ||||
| -rw-r--r-- | include/ocl/equiv.hpp | 4 | ||||
| -rw-r--r-- | include/ocl/io.hpp | 6 | ||||
| -rw-r--r-- | include/ocl/option.hpp | 6 | ||||
| -rw-r--r-- | include/ocl/print.hpp | 6 | ||||
| -rw-r--r-- | include/ocl/smart_ptr.hpp | 6 | ||||
| -rw-r--r-- | include/ocl/tracked_ptr.hpp | 6 |
11 files changed, 32 insertions, 32 deletions
@@ -10,8 +10,8 @@ OCL.Core is a header-only C++ library providing core containers and utilities. I - Header-only library (all code in `include/ocl/`) - Requires C++20 or greater - Uses Boost extensively for cross-platform functionality -- Supports freestanding mode via `__OCL_FREESTANDING` macro -- All headers follow include guard pattern `__OCL_CORE_*` +- Supports freestanding mode via `OCL_FREESTANDING` macro +- All headers follow include guard pattern `OCL_CORE_*` ## Build System & Commands @@ -130,14 +130,14 @@ Central configuration header that: The library tracks "freestanding status" - whether components work without standard library: - Currently **Half-Verified**: `option.hpp` and `is_same.hpp` (referenced but not in repo) -- Define `__OCL_FREESTANDING` to disable Boost includes +- Define `OCL_FREESTANDING` to disable Boost includes ## Development Guidelines ### Adding New Components 1. Create header in `include/ocl/` -2. Use include guard: `#ifndef __OCL_CORE_<NAME>` +2. Use include guard: `#ifndef OCL_CORE_<NAME>` 3. Include `ocl/detail/config.hpp` first 4. Place implementation in `ocl` namespace 5. Internal helpers go in `ocl::detail` namespace diff --git a/include/ocl/allocator_op.hpp b/include/ocl/allocator_op.hpp index d3506e0..85648ca 100644 --- a/include/ocl/allocator_op.hpp +++ b/include/ocl/allocator_op.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_CORE_ALLOCATOR_OP -#define __OCL_CORE_ALLOCATOR_OP +#ifndef OCL_CORE_ALLOCATOR_OP +#define OCL_CORE_ALLOCATOR_OP #include <ocl/detail/config.hpp> #include <memory> @@ -84,4 +84,4 @@ namespace ocl } // namespace ocl -#endif // ifndef __OCL_CORE_ALLOCATOR_OP +#endif // ifndef OCL_CORE_ALLOCATOR_OP diff --git a/include/ocl/basic_hash.hpp b/include/ocl/basic_hash.hpp index 852e67d..777100e 100644 --- a/include/ocl/basic_hash.hpp +++ b/include/ocl/basic_hash.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_CORE_BASIC_HASH -#define __OCL_CORE_BASIC_HASH +#ifndef OCL_CORE_BASIC_HASH +#define OCL_CORE_BASIC_HASH #include <ocl/detail/config.hpp> diff --git a/include/ocl/crc_hash.hpp b/include/ocl/crc_hash.hpp index 412ec63..9af8819 100644 --- a/include/ocl/crc_hash.hpp +++ b/include/ocl/crc_hash.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_CORE_CRC_HASH -#define __OCL_CORE_CRC_HASH +#ifndef OCL_CORE_CRC_HASH +#define OCL_CORE_CRC_HASH #include <ocl/detail/config.hpp> #include <unordered_map> @@ -137,4 +137,4 @@ namespace std } // namespace std -#endif // !__OCL_CORE_CRC_HASH +#endif // !OCL_CORE_CRC_HASH diff --git a/include/ocl/detail/config.hpp b/include/ocl/detail/config.hpp index 9df8597..f6d4223 100644 --- a/include/ocl/detail/config.hpp +++ b/include/ocl/detail/config.hpp @@ -5,10 +5,10 @@ * Copyright 2025, Amlal El Mahrouss, licensed under the Boost Software License. */ -#ifndef __OCL_CORE_CONFIG -#define __OCL_CORE_CONFIG +#ifndef OCL_CORE_CONFIG +#define OCL_CORE_CONFIG -#ifndef __OCL_FREESTANDING +#ifndef OCL_FREESTANDING #include <boost/config.hpp> #include <boost/core/addressof.hpp> #include <boost/core/nvp.hpp> diff --git a/include/ocl/equiv.hpp b/include/ocl/equiv.hpp index 7e14523..b2c65e5 100644 --- a/include/ocl/equiv.hpp +++ b/include/ocl/equiv.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_CORE_EQUIV -#define __OCL_CORE_EQUIV +#ifndef OCL_CORE_EQUIV +#define OCL_CORE_EQUIV #include <ocl/detail/config.hpp> diff --git a/include/ocl/io.hpp b/include/ocl/io.hpp index 6d467e0..39fbc1a 100644 --- a/include/ocl/io.hpp +++ b/include/ocl/io.hpp @@ -3,12 +3,12 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_CORE_IO -#define __OCL_CORE_IO +#ifndef OCL_CORE_IO +#define OCL_CORE_IO #include <ocl/detail/config.hpp> -#ifndef __OCL_FREESTANDING +#ifndef OCL_FREESTANDING #define console_io_out std::cout #define console_io_in std::cin diff --git a/include/ocl/option.hpp b/include/ocl/option.hpp index e137302..9105f2c 100644 --- a/include/ocl/option.hpp +++ b/include/ocl/option.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_CORE_OPTION -#define __OCL_CORE_OPTION +#ifndef OCL_CORE_OPTION +#define OCL_CORE_OPTION #include <ocl/detail/config.hpp> #include <ocl/print.hpp> @@ -151,4 +151,4 @@ namespace ocl } // namespace ocl -#endif /* ifndef __OCL_CORE_OPTION */ +#endif /* ifndef OCL_CORE_OPTION */ diff --git a/include/ocl/print.hpp b/include/ocl/print.hpp index 1483ed6..da0f65e 100644 --- a/include/ocl/print.hpp +++ b/include/ocl/print.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_CORE_PRINT -#define __OCL_CORE_PRINT +#ifndef OCL_CORE_PRINT +#define OCL_CORE_PRINT #include <ocl/detail/config.hpp> #include <ocl/io.hpp> @@ -84,4 +84,4 @@ namespace ocl::io } // namespace ocl::io -#endif // ifndef __OCL_CORE_PRINT +#endif // ifndef OCL_CORE_PRINT diff --git a/include/ocl/smart_ptr.hpp b/include/ocl/smart_ptr.hpp index c144361..7d76f46 100644 --- a/include/ocl/smart_ptr.hpp +++ b/include/ocl/smart_ptr.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_SMART_PTR -#define __OCL_SMART_PTR +#ifndef OCL_SMART_PTR +#define OCL_SMART_PTR #include <boost/core/null_deleter.hpp> #include <ocl/detail/config.hpp> @@ -32,4 +32,4 @@ namespace ocl } // namespace ocl -#endif // ifndef __OCL_SMART_PTR +#endif // ifndef OCL_SMART_PTR diff --git a/include/ocl/tracked_ptr.hpp b/include/ocl/tracked_ptr.hpp index 0f32b93..8a8b25f 100644 --- a/include/ocl/tracked_ptr.hpp +++ b/include/ocl/tracked_ptr.hpp @@ -3,8 +3,8 @@ // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // Official repository: https://github.com/ocl-org/core -#ifndef __OCL_TRACKED_PTR -#define __OCL_TRACKED_PTR +#ifndef OCL_TRACKED_PTR +#define OCL_TRACKED_PTR #include "boost/assert/source_location.hpp" #include <ocl/detail/config.hpp> @@ -238,4 +238,4 @@ namespace ocl } // namespace ocl -#endif // ifndef __OCL_TRACKED_PTR +#endif // ifndef OCL_TRACKED_PTR |
