aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/Error.h
diff options
context:
space:
mode:
authorVidhya Sudhan Loganathan <vidhyasudhan.loganathan@arm.com>2018-04-23 08:20:04 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:54 +0000
commit3ca9786fe8ed00ad03963cae6a9eef7bb2fe630e (patch)
treebfb90cff9267f9b9259d241f29e3aecaaf3b17b2 /arm_compute/core/Error.h
parentbf3c6626e98b9e1be435fce9fdabc9d21f3b5b3a (diff)
downloadComputeLibrary-3ca9786fe8ed00ad03963cae6a9eef7bb2fe630e.tar.gz
COMPMID-718 : Winograd: add validate method and tests
Validate methods added to Winograd kernels and function. Renamed validation test suit Change-Id: I0a88df436aff0bbaf4fd82213eeda089b87ac5bf Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/127781 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'arm_compute/core/Error.h')
-rw-r--r--arm_compute/core/Error.h10
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