blob: 0bb6654a72a720a50ef1967748f6add35a506648 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
/*
* File: config.hpp
* Purpose: Configuration header of the `tproc` library.
* Author: Amlal El Mahrouss (amlal@nekernel.org)
* Copyright 2025-2026, Amlal El Mahrouss, licensed under the Boost Software License.
*/
#ifndef OCL_TPROC_CONFIG
#define OCL_TPROC_CONFIG
#include <boost/assert/source_location.hpp>
#include <ocl/detail/config.hpp>
#include <boost/core/detail/string_view.hpp>
namespace ocl::tproc
{
namespace detail
{
inline void throw_invalid_range(const auto sc = BOOST_CURRENT_LOCATION)
{
throw std::out_of_range(sc.to_string());
}
inline void throw_bad_alloc()
{
throw std::bad_alloc();
}
} // namespace detail
} // namespace ocl::tproc
#endif // ifndef OCL_TPROC_CONFIG
|