/* * This source code is released into the public domain. */ module; #include #include export module nihil.core:errc; namespace nihil { export enum struct errc { no_error = 0, /* * nihil.command */ incomplete_command, /* * nihil.util */ // Empty string is not allowed. empty_string, // Invalid unit, e.g. in parse_size() invalid_unit, }; export [[nodiscard]] auto nihil_category() noexcept -> std::error_category &; export [[nodiscard]] auto make_error_condition(errc ec) -> std::error_condition; } // namespace nihil namespace std { export template<> struct is_error_condition_enum : true_type {}; } // namespace std