diff options
Diffstat (limited to 'arm_compute/core/Error.h')
-rw-r--r-- | arm_compute/core/Error.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arm_compute/core/Error.h b/arm_compute/core/Error.h index 590da9b58e..3635e93244 100644 --- a/arm_compute/core/Error.h +++ b/arm_compute/core/Error.h @@ -175,6 +175,16 @@ Status create_error(ErrorCode error_code, const char *function, const char *file */ #define ARM_COMPUTE_CREATE_ERROR_LOC(error_code, func, file, line, ...) ::arm_compute::create_error(error_code, func, file, line, __VA_ARGS__) // NOLINT +/** An error is returned with the given description. + * + * @param[in] ... Error description message. + */ +#define ARM_COMPUTE_RETURN_ERROR_MSG(...) \ + do \ + { \ + return ARM_COMPUTE_CREATE_ERROR(arm_compute::ErrorCode::RUNTIME_ERROR, __VA_ARGS__); \ + } while(false) + /** Checks if a status contains an error and returns it * * @param[in] status Status value to check |