diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-21 11:11:23 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-21 11:11:23 +0100 |
| commit | 185335e8efcac46e96e25e5a50e0d4b93152f983 (patch) | |
| tree | 8b5f824d4913aa7a3d3e70df0aaa6c0980b81122 /include/ocl/detail | |
| parent | 646d97f28c2891d634e3066535524fa28e297045 (diff) | |
feat: New release of `OCL.Core`, standalone module.v3.0
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'include/ocl/detail')
| -rw-r--r-- | include/ocl/detail/config.hpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/ocl/detail/config.hpp b/include/ocl/detail/config.hpp index 2efc037..ae5735e 100644 --- a/include/ocl/detail/config.hpp +++ b/include/ocl/detail/config.hpp @@ -15,7 +15,9 @@ #include <boost/core/demangle.hpp> #include <boost/core/null_deleter.hpp> #include <boost/container/allocator.hpp> +#include <boost/assert/source_location.hpp> #include <boost/assert.hpp> +#include <boost/utility/string_view.hpp> #endif #define OCL_DEPRECATED() [[deprecated]] @@ -51,4 +53,15 @@ #define OCL_HAS_PRAGMA_ONCE 1 #endif +namespace ocl +{ + namespace detail + { + inline void throw_runtime_error(const boost::string_view& loc = BOOST_CURRENT_LOCATION.to_string()) + { + throw std::runtime_error(loc.to_string()); + } + } +} + #endif
\ No newline at end of file |
