From 0797cb2d44fbaf5ff060890e5fecc22e2e4bee76 Mon Sep 17 00:00:00 2001 From: Yuval Shekel Date: Tue, 6 Aug 2024 16:41:54 +0300 Subject: [PATCH] add error enumeartion for license error --- icicle_v3/include/icicle/errors.h | 3 +++ icicle_v3/include/icicle/msm.h | 1 + 2 files changed, 4 insertions(+) diff --git a/icicle_v3/include/icicle/errors.h b/icicle_v3/include/icicle/errors.h index 178801d1..fb7f82a9 100644 --- a/icicle_v3/include/icicle/errors.h +++ b/icicle_v3/include/icicle/errors.h @@ -24,6 +24,7 @@ namespace icicle { API_NOT_IMPLEMENTED, ///< The API is not implemented for a device INVALID_ARGUMENT, ///< Invalid argument passed BACKEND_LOAD_FAILED, ///< Failed to load the backend + LICNESE_CHECK_ERROR, ////< Failed to check license or invalid license UNKNOWN_ERROR, ///< An unknown error occurred }; @@ -62,6 +63,8 @@ namespace icicle { return "eIcicleError::INVALID_ARGUMENT"; case eIcicleError::BACKEND_LOAD_FAILED: return "eIcicleError::BACKEND_LOAD_FAILED"; + case eIcicleError::LICNESE_CHECK_ERROR: + return "eIcicleError::LICNESE_CHECK_ERROR"; case eIcicleError::UNKNOWN_ERROR: default: return "eIcicleError::UNKNOWN_ERROR"; diff --git a/icicle_v3/include/icicle/msm.h b/icicle_v3/include/icicle/msm.h index 5ab1fd92..698fef02 100644 --- a/icicle_v3/include/icicle/msm.h +++ b/icicle_v3/include/icicle/msm.h @@ -71,6 +71,7 @@ namespace icicle { false, // are_points_montgomery_form false, // are_results_on_device false, // is_async + nullptr, // ext }; return config; }