diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-07-01 17:07:04 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-07-01 17:07:04 +0100 |
| commit | 2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (patch) | |
| tree | 54d37ffadf8e677938d9b7a28e4e9b71be1e75c1 /nihil.core/errc.ccm | |
| parent | 36427c0966faa7aecd586b397ed9b845f18172f5 (diff) | |
| download | nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.gz nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.bz2 | |
add nihil.std
Diffstat (limited to 'nihil.core/errc.ccm')
| -rw-r--r-- | nihil.core/errc.ccm | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/nihil.core/errc.ccm b/nihil.core/errc.ccm index c597faf..f5aac0b 100644 --- a/nihil.core/errc.ccm +++ b/nihil.core/errc.ccm @@ -1,28 +1,29 @@ -/* - * This source code is released into the public domain. - */ - -module; - -#include <string> -#include <system_error> - +// This source code is released into the public domain. export module nihil.core:errc; +import nihil.std; + namespace nihil { -export enum struct errc { +export enum struct errc : std::uint8_t { no_error = 0, - /* - * nihil.command - */ + // + // nihil.command + // incomplete_command, - /* - * nihil.util - */ + // + // nihil.ucl + // + + failed_to_create_object, + type_mismatch, + + // + // nihil.util + // // Empty string is not allowed. empty_string, @@ -36,9 +37,5 @@ export [[nodiscard]] auto make_error_condition(errc ec) -> std::error_condition; } // namespace nihil -namespace std { - -export template<> -struct is_error_condition_enum<nihil::errc> : true_type {}; - -} // namespace std +template<> +struct std::is_error_condition_enum<nihil::errc> : std::true_type {}; |
