From 5adeb648f74c1771164c0686d6e0fc584cf36d9e Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Wed, 2 Jul 2025 04:00:06 +0100 Subject: move everything from util to core --- nihil.core/sys_error.ccm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nihil.core/sys_error.ccm (limited to 'nihil.core/sys_error.ccm') diff --git a/nihil.core/sys_error.ccm b/nihil.core/sys_error.ccm new file mode 100644 index 0000000..3e5911f --- /dev/null +++ b/nihil.core/sys_error.ccm @@ -0,0 +1,18 @@ +// This source code is released into the public domain. +module; + +#include + +export module nihil.core:sys_error; + +import nihil.std; + +namespace nihil { + +// Allow access to errno without having to include . +export [[nodiscard]] auto sys_error() -> std::errc +{ + return static_cast(errno); // NOLINT +} + +} // namespace nihil -- cgit v1.2.3