aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.ucl/errc.ccm
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
commit2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (patch)
tree54d37ffadf8e677938d9b7a28e4e9b71be1e75c1 /nihil.ucl/errc.ccm
parent36427c0966faa7aecd586b397ed9b845f18172f5 (diff)
downloadnihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.gz
nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.bz2
add nihil.std
Diffstat (limited to 'nihil.ucl/errc.ccm')
-rw-r--r--nihil.ucl/errc.ccm33
1 files changed, 0 insertions, 33 deletions
diff --git a/nihil.ucl/errc.ccm b/nihil.ucl/errc.ccm
deleted file mode 100644
index 8f0444d..0000000
--- a/nihil.ucl/errc.ccm
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * This source code is released into the public domain.
- */
-
-module;
-
-#include <string>
-#include <system_error>
-
-export module nihil.ucl:errc;
-
-namespace nihil::ucl {
-
-export enum struct errc {
- no_error = 0,
-
- // ucl_object_new() or similar failed, e.g. out of memory
- failed_to_create_object,
- // Trying to create an object from a UCL object of the wrong type
- type_mismatch,
-};
-
-export auto ucl_category() noexcept -> std::error_category &;
-export auto make_error_condition(errc ec) -> std::error_condition;
-
-} // namespace nihil::ucl
-
-namespace std {
-
-export template<>
-struct is_error_condition_enum<nihil::ucl::errc> : true_type {};
-
-} // namespace std