mirror of
https://github.com/Mercantec-GHC/h5-projekt-mst.git
synced 2026-08-27 13:47:38 +02:00
13 lines
239 B
C++
13 lines
239 B
C++
#pragma once
|
|
#include <cerrno>
|
|
#include <cstring>
|
|
#include <format>
|
|
#include <string_view>
|
|
|
|
namespace mst {
|
|
auto inline errno_shim(std::string_view message) -> std::string
|
|
{
|
|
return std::format("{} ({})", message, strerror(errno));
|
|
}
|
|
}
|