Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 1 | /* |
Diego Lopez Recas | 35ceeb2 | 2017-12-04 18:56:10 +0000 | [diff] [blame] | 2 | * Copyright (c) 2016-2018 ARM Limited. |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 3 | * |
| 4 | * SPDX-License-Identifier: MIT |
| 5 | * |
| 6 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
| 7 | * of this software and associated documentation files (the "Software"), to |
| 8 | * deal in the Software without restriction, including without limitation the |
| 9 | * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
| 10 | * sell copies of the Software, and to permit persons to whom the Software is |
| 11 | * furnished to do so, subject to the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice shall be included in all |
| 14 | * copies or substantial portions of the Software. |
| 15 | * |
| 16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 19 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
| 20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
| 21 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
| 22 | * SOFTWARE. |
| 23 | */ |
| 24 | #ifndef __ARM_COMPUTE_ERROR_H__ |
| 25 | #define __ARM_COMPUTE_ERROR_H__ |
| 26 | |
Anthony Barbier | 7068f99 | 2017-10-26 15:23:08 +0100 | [diff] [blame] | 27 | #include <stdarg.h> |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 28 | #include <string> |
| 29 | |
| 30 | namespace arm_compute |
| 31 | { |
Georgios Pinitas | d8734b5 | 2017-12-22 15:27:52 +0000 | [diff] [blame] | 32 | /** Ignores unused arguments |
| 33 | * |
| 34 | * @tparam T Argument types |
Alex Gilday | c357c47 | 2018-03-21 13:54:09 +0000 | [diff] [blame] | 35 | * |
| 36 | * @param[in] ... Ignored arguments |
Georgios Pinitas | d8734b5 | 2017-12-22 15:27:52 +0000 | [diff] [blame] | 37 | */ |
| 38 | template <typename... T> |
| 39 | inline void ignore_unused(T &&...) |
| 40 | { |
| 41 | } |
| 42 | |
| 43 | /** Available error codes */ |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 44 | enum class ErrorCode |
| 45 | { |
Vidhya Sudhan Loganathan | 76c8564 | 2018-05-25 13:53:02 +0100 | [diff] [blame] | 46 | OK, /**< No error */ |
| 47 | RUNTIME_ERROR, /**< Generic runtime error */ |
| 48 | UNSUPPORTED_EXTENSION_USE /**< Unsupported extension used*/ |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 49 | }; |
| 50 | |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 51 | /** Status class */ |
| 52 | class Status |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 53 | { |
| 54 | public: |
| 55 | /** Default Constructor **/ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 56 | Status() |
| 57 | : _code(ErrorCode::OK), _error_description(" ") |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 58 | { |
| 59 | } |
| 60 | /** Default Constructor |
| 61 | * |
| 62 | * @param error_status Error status. |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 63 | * @param error_description (Optional) Error description if error_status is not valid. |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 64 | */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 65 | explicit Status(ErrorCode error_status, std::string error_description = " ") |
| 66 | : _code(error_status), _error_description(error_description) |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 67 | { |
| 68 | } |
| 69 | /** Allow instances of this class to be copy constructed */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 70 | Status(const Status &) = default; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 71 | /** Allow instances of this class to be move constructed */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 72 | Status(Status &&) = default; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 73 | /** Allow instances of this class to be copy assigned */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 74 | Status &operator=(const Status &) = default; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 75 | /** Allow instances of this class to be move assigned */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 76 | Status &operator=(Status &&) = default; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 77 | /** Explicit bool conversion operator |
| 78 | * |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 79 | * @return True if there is no error else false |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 80 | */ |
| 81 | explicit operator bool() const noexcept |
| 82 | { |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 83 | return _code == ErrorCode::OK; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 84 | } |
| 85 | /** Gets error code |
| 86 | * |
| 87 | * @return Error code. |
| 88 | */ |
| 89 | ErrorCode error_code() const |
| 90 | { |
| 91 | return _code; |
| 92 | } |
| 93 | /** Gets error description if any |
| 94 | * |
| 95 | * @return Error description. |
| 96 | */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 97 | std::string error_description() const |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 98 | { |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 99 | return _error_description; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 100 | } |
| 101 | /** Throws a runtime exception in case it contains a valid error status */ |
Diego Lopez Recas | 35ceeb2 | 2017-12-04 18:56:10 +0000 | [diff] [blame] | 102 | void throw_if_error() const |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 103 | { |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 104 | if(!bool(*this)) |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 105 | { |
| 106 | internal_throw_on_error(); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | private: |
| 111 | /** Internal throwing function */ |
Diego Lopez Recas | 35ceeb2 | 2017-12-04 18:56:10 +0000 | [diff] [blame] | 112 | [[noreturn]] void internal_throw_on_error() const; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 113 | |
| 114 | private: |
| 115 | ErrorCode _code; |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 116 | std::string _error_description; |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 117 | }; |
| 118 | |
Anthony Barbier | 7068f99 | 2017-10-26 15:23:08 +0100 | [diff] [blame] | 119 | /** Creates an error containing the error message from variable argument list |
| 120 | * |
| 121 | * @param[in] error_code Error code |
| 122 | * @param[in] function Function in which the error occurred. |
| 123 | * @param[in] file Name of the file where the error occurred. |
| 124 | * @param[in] line Line on which the error occurred. |
| 125 | * @param[in] msg Message to display before aborting. |
| 126 | * @param[in] args Variable argument list of the message. |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 127 | * |
| 128 | * @return status containing the error |
Anthony Barbier | 7068f99 | 2017-10-26 15:23:08 +0100 | [diff] [blame] | 129 | */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 130 | Status create_error_va_list(ErrorCode error_code, const char *function, const char *file, const int line, const char *msg, va_list args); |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 131 | /** Creates an error containing the error message |
| 132 | * |
| 133 | * @param[in] error_code Error code |
| 134 | * @param[in] function Function in which the error occurred. |
| 135 | * @param[in] file Name of the file where the error occurred. |
| 136 | * @param[in] line Line on which the error occurred. |
| 137 | * @param[in] msg Message to display before aborting. |
| 138 | * @param[in] ... Variable number of arguments of the message. |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 139 | * |
| 140 | * @return status containing the error |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 141 | */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 142 | Status create_error(ErrorCode error_code, const char *function, const char *file, const int line, const char *msg, ...); |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 143 | /** Print an error message then throw an std::runtime_error |
| 144 | * |
| 145 | * @param[in] function Function in which the error occurred. |
| 146 | * @param[in] file Name of the file where the error occurred. |
| 147 | * @param[in] line Line on which the error occurred. |
| 148 | * @param[in] msg Message to display before aborting. |
| 149 | * @param[in] ... Variable number of arguments of the message. |
| 150 | */ |
| 151 | [[noreturn]] void error(const char *function, const char *file, const int line, const char *msg, ...); |
| 152 | } |
| 153 | /** To avoid unused variables warnings |
| 154 | * |
| 155 | * This is useful if for example a variable is only used |
| 156 | * in debug builds and generates a warning in release builds. |
| 157 | * |
Georgios Pinitas | d8734b5 | 2017-12-22 15:27:52 +0000 | [diff] [blame] | 158 | * @param[in] ... Variables which are unused. |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 159 | */ |
Georgios Pinitas | d9eb275 | 2018-04-03 13:44:29 +0100 | [diff] [blame] | 160 | #define ARM_COMPUTE_UNUSED(...) arm_compute::ignore_unused(__VA_ARGS__) // NOLINT |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 161 | |
| 162 | /** Creates an error with a given message |
| 163 | * |
| 164 | * @param[in] error_code Error code. |
| 165 | * @param[in] ... Message to encapsulate. |
| 166 | */ |
| 167 | #define ARM_COMPUTE_CREATE_ERROR(error_code, ...) ::arm_compute::create_error(error_code, __func__, __FILE__, __LINE__, __VA_ARGS__) // NOLINT |
| 168 | |
| 169 | /** Creates an error on location with a given message |
| 170 | * |
| 171 | * @param[in] error_code Error code. |
| 172 | * @param[in] func Function in which the error occurred. |
| 173 | * @param[in] file File in which the error occurred. |
| 174 | * @param[in] line Line in which the error occurred. |
| 175 | * @param[in] ... Message to display before aborting. |
| 176 | */ |
| 177 | #define ARM_COMPUTE_CREATE_ERROR_LOC(error_code, func, file, line, ...) ::arm_compute::create_error(error_code, func, file, line, __VA_ARGS__) // NOLINT |
| 178 | |
Vidhya Sudhan Loganathan | 3ca9786 | 2018-04-23 08:20:04 +0100 | [diff] [blame] | 179 | /** An error is returned with the given description. |
| 180 | * |
| 181 | * @param[in] ... Error description message. |
| 182 | */ |
| 183 | #define ARM_COMPUTE_RETURN_ERROR_MSG(...) \ |
| 184 | do \ |
| 185 | { \ |
| 186 | return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, __VA_ARGS__); \ |
| 187 | } while(false) |
| 188 | |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 189 | /** Checks if a status contains an error and returns it |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 190 | * |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 191 | * @param[in] status Status value to check |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 192 | */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 193 | #define ARM_COMPUTE_RETURN_ON_ERROR(status) \ |
| 194 | do \ |
| 195 | { \ |
| 196 | if(!bool(status)) \ |
| 197 | { \ |
| 198 | return status; \ |
| 199 | } \ |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 200 | } while(false) |
| 201 | |
| 202 | /** Checks if an error value is valid if not throws an exception with the error |
| 203 | * |
| 204 | * @param[in] error Error value to check. |
| 205 | */ |
| 206 | #define ARM_COMPUTE_THROW_ON_ERROR(error) \ |
| 207 | error.throw_if_error(); |
| 208 | |
| 209 | /** If the condition is true, an error is returned |
| 210 | * |
| 211 | * @param[in] cond Condition to evaluate. |
| 212 | * @param[in] ... Error description message |
| 213 | */ |
| 214 | #define ARM_COMPUTE_RETURN_ERROR_ON_MSG(cond, ...) \ |
| 215 | do \ |
| 216 | { \ |
| 217 | if(cond) \ |
| 218 | { \ |
| 219 | return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, __VA_ARGS__); \ |
| 220 | } \ |
| 221 | } while(false) |
| 222 | |
| 223 | /** If the condition is true, an error is thrown |
| 224 | * |
| 225 | * @param[in] cond Condition to evaluate. |
| 226 | * @param[in] func Function in which the error occurred. |
| 227 | * @param[in] file File in which the error occurred. |
| 228 | * @param[in] line Line in which the error occurred. |
| 229 | * @param[in] ... Error description message. |
| 230 | */ |
| 231 | #define ARM_COMPUTE_RETURN_ERROR_ON_LOC_MSG(cond, func, file, line, ...) \ |
| 232 | do \ |
| 233 | { \ |
| 234 | if(cond) \ |
| 235 | { \ |
| 236 | return ARM_COMPUTE_CREATE_ERROR_LOC(arm_compute::ErrorCode::RUNTIME_ERROR, func, file, line, __VA_ARGS__); \ |
| 237 | } \ |
| 238 | } while(false) |
| 239 | |
| 240 | /** If the condition is true, an error is returned |
| 241 | * |
| 242 | * @param[in] cond Condition to evaluate |
| 243 | */ |
| 244 | #define ARM_COMPUTE_RETURN_ERROR_ON(cond) \ |
| 245 | ARM_COMPUTE_RETURN_ERROR_ON_MSG(cond, #cond) |
| 246 | |
| 247 | /** If the condition is true, an error is returned |
| 248 | * |
| 249 | * @param[in] cond Condition to evaluate. |
| 250 | * @param[in] func Function in which the error occurred. |
| 251 | * @param[in] file File in which the error occurred. |
| 252 | * @param[in] line Line in which the error occurred. |
| 253 | */ |
| 254 | #define ARM_COMPUTE_RETURN_ERROR_ON_LOC(cond, func, file, line) \ |
| 255 | ARM_COMPUTE_RETURN_ERROR_ON_LOC_MSG(cond, func, file, line, #cond) |
| 256 | |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 257 | /** Print the given message then throw an std::runtime_error. |
| 258 | * |
| 259 | * @param[in] ... Message to display before aborting. |
| 260 | */ |
| 261 | #define ARM_COMPUTE_ERROR(...) ::arm_compute::error(__func__, __FILE__, __LINE__, __VA_ARGS__) // NOLINT |
| 262 | |
| 263 | /** Print the given message then throw an std::runtime_error. |
| 264 | * |
| 265 | * @param[in] func Function in which the error occurred. |
| 266 | * @param[in] file File in which the error occurred. |
| 267 | * @param[in] line Line in which the error occurred. |
| 268 | * @param[in] ... Message to display before aborting. |
| 269 | */ |
| 270 | #define ARM_COMPUTE_ERROR_LOC(func, file, line, ...) ::arm_compute::error(func, file, line, __VA_ARGS__) // NOLINT |
| 271 | |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 272 | #ifdef ARM_COMPUTE_ASSERTS_ENABLED |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 273 | /** Checks if a status value is valid if not throws an exception with the error |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 274 | * |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 275 | * @param[in] status Status value to check. |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 276 | */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 277 | #define ARM_COMPUTE_ERROR_THROW_ON(status) \ |
| 278 | status.throw_if_error() |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 279 | |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 280 | /** If the condition is true, the given message is printed and an exception is thrown |
| 281 | * |
| 282 | * @param[in] cond Condition to evaluate. |
| 283 | * @param[in] ... Message to print if cond is false. |
| 284 | */ |
| 285 | #define ARM_COMPUTE_ERROR_ON_MSG(cond, ...) \ |
| 286 | do \ |
| 287 | { \ |
| 288 | if(cond) \ |
| 289 | { \ |
| 290 | ARM_COMPUTE_ERROR(__VA_ARGS__); \ |
| 291 | } \ |
| 292 | } while(0) |
| 293 | |
| 294 | /** If the condition is true, the given message is printed and an exception is thrown |
| 295 | * |
| 296 | * @param[in] cond Condition to evaluate. |
| 297 | * @param[in] func Function in which the error occurred. |
| 298 | * @param[in] file File in which the error occurred. |
| 299 | * @param[in] line Line in which the error occurred. |
| 300 | * @param[in] ... Message to print if cond is false. |
| 301 | */ |
| 302 | #define ARM_COMPUTE_ERROR_ON_LOC_MSG(cond, func, file, line, ...) \ |
| 303 | do \ |
| 304 | { \ |
| 305 | if(cond) \ |
| 306 | { \ |
| 307 | ARM_COMPUTE_ERROR_LOC(func, file, line, __VA_ARGS__); \ |
| 308 | } \ |
| 309 | } while(0) |
| 310 | |
| 311 | /** If the condition is true, the given message is printed and an exception is thrown, otherwise value is returned |
| 312 | * |
| 313 | * @param[in] cond Condition to evaluate. |
| 314 | * @param[in] val Value to be returned. |
| 315 | * @param[in] msg Message to print if cond is false. |
| 316 | */ |
| 317 | #define ARM_COMPUTE_CONST_ON_ERROR(cond, val, msg) (cond) ? throw std::logic_error(msg) : val; |
| 318 | #else /* ARM_COMPUTE_ASSERTS_ENABLED */ |
Georgios Pinitas | 631c41a | 2017-12-06 11:53:03 +0000 | [diff] [blame] | 319 | #define ARM_COMPUTE_ERROR_THROW_ON(status) |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 320 | #define ARM_COMPUTE_ERROR_ON_MSG(cond, ...) |
| 321 | #define ARM_COMPUTE_ERROR_ON_LOC_MSG(cond, func, file, line, ...) |
| 322 | #define ARM_COMPUTE_CONST_ON_ERROR(cond, val, msg) val |
| 323 | #endif /* ARM_COMPUTE_ASSERTS_ENABLED */ |
| 324 | |
| 325 | /** If the condition is true then an error message is printed and an exception thrown |
| 326 | * |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 327 | * @param[in] cond Condition to evaluate. |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 328 | */ |
| 329 | #define ARM_COMPUTE_ERROR_ON(cond) \ |
| 330 | ARM_COMPUTE_ERROR_ON_MSG(cond, #cond) |
| 331 | |
| 332 | /** If the condition is true then an error message is printed and an exception thrown |
| 333 | * |
Georgios Pinitas | 3faea25 | 2017-10-30 14:13:50 +0000 | [diff] [blame] | 334 | * @param[in] cond Condition to evaluate. |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 335 | * @param[in] func Function in which the error occurred. |
| 336 | * @param[in] file File in which the error occurred. |
| 337 | * @param[in] line Line in which the error occurred. |
| 338 | */ |
| 339 | #define ARM_COMPUTE_ERROR_ON_LOC(cond, func, file, line) \ |
| 340 | ARM_COMPUTE_ERROR_ON_LOC_MSG(cond, func, file, line, #cond) |
| 341 | |
Anthony Barbier | 6ff3b19 | 2017-09-04 18:44:23 +0100 | [diff] [blame] | 342 | #endif /* __ARM_COMPUTE_ERROR_H__ */ |