File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,10 @@ std::string stringify_sycl_exception(const sycl::exception& e) {
58
58
// Using reference to avoid object slicing
59
59
const auto & code = e.code ();
60
60
61
- #if SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 0
62
- append_cstr (" code" , " errc enum not supported by implementation" );
63
- #else
64
61
using CodeStringMakerT = Catch::StringMaker<sycl::errc>;
65
62
const auto & errc_value = static_cast <sycl::errc>(code.value ());
66
63
67
64
append_str (" code" , CodeStringMakerT::convert (errc_value));
68
- #endif // SYCL_CTS_SUPPORT_HAS_ERRC_ENUM
69
65
70
66
append_str (" code raw value" , std::to_string (code.value ()));
71
67
append_str (" code message" , code.message ());
Original file line number Diff line number Diff line change @@ -95,7 +95,6 @@ class matcher_exception_category : public Catch::Matchers::MatcherGenericBase {
95
95
const std::error_category& m_category;
96
96
};
97
97
98
- #if SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 1
99
98
/* *
100
99
* Matcher for sycl::errc error codes
101
100
* C++ provides semantic match for std::error_code by operator==, still SYCL
@@ -132,7 +131,6 @@ struct matcher_equals_exception
132
131
private:
133
132
const sycl::errc& m_code_value;
134
133
};
135
- #endif // SYCL_CTS_SUPPORT_HAS_ERRC_ENUM
136
134
137
135
} // namespace detail
138
136
@@ -148,7 +146,6 @@ inline auto has_exception_category(const std::error_category& category) {
148
146
return detail::matcher_exception_category (category);
149
147
}
150
148
151
- #if SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 1
152
149
/* *
153
150
* Provides matcher for sycl::errc error codes with sycl_category check
154
151
*
@@ -160,7 +157,6 @@ inline auto has_exception_category(const std::error_category& category) {
160
157
inline auto equals_exception (const sycl::errc& code) {
161
158
return detail::matcher_equals_exception (code);
162
159
}
163
- #endif // SYCL_CTS_SUPPORT_HAS_ERRC_ENUM == 1
164
160
165
161
} // namespace sycl_cts::util
166
162
You can’t perform that action at this time.
0 commit comments