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/print.hpp | |
| 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/print.hpp')
| -rw-r--r-- | include/ocl/print.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/ocl/print.hpp b/include/ocl/print.hpp index a667225..70b79dd 100644 --- a/include/ocl/print.hpp +++ b/include/ocl/print.hpp @@ -42,6 +42,13 @@ namespace ocl::io namespace detail { inline bool is_stdio_sync = true; + + using io_error = std::runtime_error; + + inline void throw_option_invalid_type_error(const boost::string_view& loc = BOOST_CURRENT_LOCATION.to_string()) + { + throw io_error(loc.to_string()); + } } inline void enable_stdio_sync(const bool& enable) noexcept |
