diff options
Diffstat (limited to 'include/ocl/detail/config.hpp')
| -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 |
