summaryrefslogtreecommitdiffhomepage
path: root/include/ocl/tproc/detail/config.hpp
blob: 80ebbd6cb7d903109ee8c874fd530d958f74923c (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
// SPDX-License-Identifier: BSL-1.0
// Copyright 2025-2026, Amlal El Mahrouss (amlal@nekernel.org)
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// Official repository: https://github.com/ocl-foss-org/tproc

#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