blob: 3e5911fb37f50c4c8e37a8c8d58f022521bc1e9c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
// This source code is released into the public domain.
module;
#include <cerrno>
export module nihil.core:sys_error;
import nihil.std;
namespace nihil {
// Allow access to errno without having to include <cerrno>.
export [[nodiscard]] auto sys_error() -> std::errc
{
return static_cast<std::errc>(errno); // NOLINT
}
} // namespace nihil
|