Skip to content
Welcome to the new CppUtils documentation!

Namespace: CppUtils::System

using CppUtils::System::CrashCallback = typedef std::function<void(const CrashInformation&)>;
using CppUtils::System::Handle = typedef std::intptr_t;
auto defaultCrashHandler(const CrashInformation& information) -> void;

auto installCrashHandler(CrashCallback customHandler=defaultCrashHandler) -> void;

auto throwErrno(int value, std::string_view message="") -> int;

auto expectErrno(int value, std::string_view message="") -> std::expected<int, std::system_error>;

constexpr auto CppUtils::System::InvalidHandle;