25 void throw_ill_formed(
28 "this range is ill formed normally upper > lower\n lower = {}, upper = {}\n "
29 "call to check_throw = {}",
37 if (lower.x() >= upper.x()) {
38 throw_ill_formed(lower, upper, loc);
40 if (lower.y() >= upper.y()) {
41 throw_ill_formed(lower, upper, loc);
43 if (lower.z() >= upper.z()) {
44 throw_ill_formed(lower, upper, loc);
50 if (lower.x() >= upper.x()) {
51 throw_ill_formed(lower, upper, loc);
53 if (lower.y() >= upper.y()) {
54 throw_ill_formed(lower, upper, loc);
56 if (lower.z() >= upper.z()) {
57 throw_ill_formed(lower, upper, loc);
63 if (lower.x() >= upper.x()) {
64 throw_ill_formed(lower, upper, loc);
66 if (lower.y() >= upper.y()) {
67 throw_ill_formed(lower, upper, loc);
69 if (lower.z() >= upper.z()) {
70 throw_ill_formed(lower, upper, loc);
76 if (lower.x() >= upper.x()) {
77 throw_ill_formed(lower, upper, loc);
79 if (lower.y() >= upper.y()) {
80 throw_ill_formed(lower, upper, loc);
82 if (lower.z() >= upper.z()) {
83 throw_ill_formed(lower, upper, loc);
89 if (lower.x() >= upper.x()) {
90 throw_ill_formed(lower, upper, loc);
92 if (lower.y() >= upper.y()) {
93 throw_ill_formed(lower, upper, loc);
95 if (lower.z() >= upper.z()) {
96 throw_ill_formed(lower, upper, loc);
102 if (lower.x() >= upper.x()) {
103 throw_ill_formed(lower, upper, loc);
105 if (lower.y() >= upper.y()) {
106 throw_ill_formed(lower, upper, loc);
108 if (lower.z() >= upper.z()) {
109 throw_ill_formed(lower, upper, loc);
115 if (lower.x() >= upper.x()) {
116 throw_ill_formed(lower, upper, loc);
118 if (lower.y() >= upper.y()) {
119 throw_ill_formed(lower, upper, loc);
121 if (lower.z() >= upper.z()) {
122 throw_ill_formed(lower, upper, loc);
This header file contains utility functions related to exception handling in the code.
Define the fmt formatters for sycl::vec.
void throw_with_loc(std::string message, SourceLocation loc=SourceLocation{})
Throw an exception and append the source location to it.
namespace for math utility
provide information about the source location
std::string format_multiline() const
format the location in multiple lines