diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-21 12:49:43 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-21 12:49:43 -0500 |
commit | b2dbcb55e2832c373fecb4033a3ed77e5dbc77aa (patch) | |
tree | 1f294fcf1d85a02db86de3eea2b03393fd89ca5a /include/fud_status.hpp | |
parent | 6a27a2a4032e88fa9154ef0f0741edc584f7a701 (diff) |
Add vector and option.
Diffstat (limited to 'include/fud_status.hpp')
-rw-r--r-- | include/fud_status.hpp | 66 |
1 files changed, 36 insertions, 30 deletions
diff --git a/include/fud_status.hpp b/include/fud_status.hpp index 91048ac..d57a9c5 100644 --- a/include/fud_status.hpp +++ b/include/fud_status.hpp @@ -23,24 +23,26 @@ namespace fud { enum class [[nodiscard]] FudStatus { Success = 0, + Partial, + Failure, NullPointer, - StringInvalid, - ObjectInvalid, - OperationInvalid, - AllocFailure, - DeallocFailure, ArgumentInvalid, + VariantInvalid, + ObjectInvalid, Utf8Invalid, - Failure, + StringInvalid, + OperationInvalid, + AlreadyInitialized, + FormatInvalid, + RangeError, + IndexInvalid, + Exists, NotFound, - Aliased, Empty, - Partial, Full, - RangeError, - VariantInvalid, - BadArrayLength, - FormatInvalid, + Aliased, + AllocFailure, + DeallocFailure, NotImplemented, NotSupported }; @@ -50,6 +52,10 @@ constexpr const char* FudStatusToString(FudStatus status) switch (status) { case FudStatus::Success: return "Success"; + case FudStatus::Partial: + return "Partial"; + case FudStatus::Failure: + return "Failure"; case FudStatus::NullPointer: return "NullPointer"; case FudStatus::StringInvalid: @@ -58,34 +64,34 @@ constexpr const char* FudStatusToString(FudStatus status) return "ObjectInvalid"; case FudStatus::OperationInvalid: return "OperationInvalid"; - case FudStatus::AllocFailure: - return "AllocFailure"; - case FudStatus::DeallocFailure: - return "DeallocFailure"; case FudStatus::ArgumentInvalid: return "ArgumentInvalid"; case FudStatus::Utf8Invalid: return "Utf8Invalid"; - case FudStatus::Failure: - return "Failure"; - case FudStatus::NotFound: - return "NotFound"; - case FudStatus::Aliased: - return "Aliased"; - case FudStatus::Empty: - return "Empty"; - case FudStatus::Partial: - return "Partial"; - case FudStatus::Full: - return "Full"; case FudStatus::RangeError: return "RangeError"; case FudStatus::VariantInvalid: return "VariantInvalid"; - case FudStatus::BadArrayLength: - return "BadArrayLength"; case FudStatus::FormatInvalid: return "FormatInvalid"; + case FudStatus::AlreadyInitialized: + return "AlreadyInitialized"; + case FudStatus::IndexInvalid: + return "IndexInvalid"; + case FudStatus::Exists: + return "Exists"; + case FudStatus::NotFound: + return "NotFound"; + case FudStatus::Empty: + return "Empty"; + case FudStatus::Full: + return "Full"; + case FudStatus::Aliased: + return "Aliased"; + case FudStatus::AllocFailure: + return "AllocFailure"; + case FudStatus::DeallocFailure: + return "DeallocFailure"; case FudStatus::NotImplemented: return "NotImplemented"; case FudStatus::NotSupported: |